Function at 0x50b490
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x50b708
sub esp, 0x54
mov edi, dword [esp + 0x68]
xor ebx, ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
mov esi, dword [esp + 0x64]
lea ebx, [esp + 0x33]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov byte [ebx + 8], 0
mov ecx, 9
cmp ecx, 0
jle 0x50b55d
dec ecx
mov dword [esp + 0x28], esi
mov ebp, 0xcccccccd
mov dword [esp + 0x24], eax
mov ebx, edx
mov eax, ebp
mul dword [esp + 0x28]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x24]
mov edx, ebx
mov ebp, dword [esp + 0x28]
shr ebp, 3
mov dword [esp + 0x28], ebp
mov ebx, dword [esp + 0x28]
imul ebx, ebx, 0xa
mov ebp, esi
sub ebp, ebx
mov dword [esp + 0x28], ebp
mov ebx, dword [esp + 0x28]
add ebx, 0x30
mov byte [esp + 0x23], bl
lea ebp, [esp + 0x33]
cmp ecx, 9
jae 0x50b701
add ebp, ecx
movzx ebx, byte [esp + 0x23]
mov byte [ebp], bl
mov ebp, esi
mov ebx, 0xcccccccd
mov esi, eax
mov dword [esp + 0x24], edx
mov eax, ebx
mul ebp
mov ebx, edx
mov eax, esi
mov edx, dword [esp + 0x24]
shr ebx, 3
mov esi, ebx
cmp ecx, 0
jg 0x50b4de
cmp edi, 9
jle 0x50b56b
mov edi, 9
mov dword [esp + 0x68], edi
cmp byte [esp + 0x6c], 0
je 0x50b5bd
cmp edi, 0
jle 0x50b598
mov ebx, edi
dec ebx
lea ebp, [esp + 0x33]
cmp ebx, 9
jae 0x50b6fa
add ebp, ebx
movzx ebx, byte [ebp]
cmp bl, 0x30
jne 0x50b598
dec edi
cmp edi, 0
jg 0x50b577
mov dword [esp + 0x68], edi
cmp edi, 0
jne 0x50b5bd
mov ebx, dword [esp + 0x58]
mov dword [esp + 0x70], ebx
mov ebx, dword [esp + 0x5c]
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x78], ebx
add esp, 0x54
ret
mov ecx, dword [esp + 0x58]
mov ebx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
mov eax, ebx
inc ebx
cmp ebx, edx
ja 0x50b6ba
mov dword [esp + 0x5c], ebx
mov ebx, ecx
add ebx, eax
mov byte [ebx], 0x2e
cmp edi, 9
ja 0x50b6b3
lea ebx, [esp + 0x33]
cmp ebx, 0
je 0x50b6ac
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], 9
mov dword [esp + 0x48], ebx
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x4c]
mov edx, edi
add edi, ebx
cmp edi, eax
jbe 0x50b659
mov dword [esp], 0x70b300
mov dword [esp + 0x3c], esi
mov dword [esp + 4], esi
mov dword [esp + 0x40], edx
mov dword [esp + 8], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], edi
call fcn.00449ae0
mov edi, dword [esp + 0x2c]
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
cmp edi, eax
ja 0x50b6a5
mov dword [esp + 0x40], edi
mov eax, dword [esp + 0x4c]
mov ebx, dword [esp + 0x5c]
mov ebp, esi
mov dword [esp + 0x3c], esi
add ebp, ebx
mov dword [esp], ebp
mov ebx, dword [esp + 0x48]
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.00463ec0
mov eax, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
add esp, 0x54
ret
call fcn.004359e0
ud2
mov dword [ebx], eax
jmp 0x50b5f5
call fcn.004359e0
ud2
mov dword [esp], 0x70b300
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ebx
call fcn.00449ae0
mov edi, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, ebx
inc ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], edx
mov dword [esp + 0x58], ecx
jmp 0x50b5d8
call fcn.00435970
ud2
call fcn.00435970
ud2
call fcn.004616d0
jmp fcn.0050b490