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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4747e5
sub esp, 0x50
mov eax, dword [esp + 0x68]
test eax, eax
je 0x4747bb
xor ecx, ecx
xor edx, edx
xor ebx, ebx
xor ebp, ebp
jmp 0x4745c5
mov ebp, eax
mov eax, dword [esp + 0x68]
mov esi, eax
sub eax, ecx
cmp eax, 4
jl 0x474718
mov edi, dword [esp + 0x5c]
sub edi, ebp
cmp edi, 4
jl 0x474718
mov dword [esp + 0x4c], edx
mov edx, dword [esp + 0x5c]
cmp ebp, edx
ja 0x4747de
mov dword [esp + 0x48], ebx
mov edx, dword [esp + 0x60]
sub edx, ebp
mov dword [esp + 0x40], edx
neg edx
sar edx, 0x1f
and edx, ebp
mov ebx, dword [esp + 0x58]
add edx, ebx
cmp ecx, esi
ja 0x4747de
mov dword [esp + 0x30], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], ebp
mov ebx, dword [esp + 0x54]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov ebp, dword [esp + 0x40]
mov dword [esp + 0xc], ebp
mov esi, dword [esp + 0x6c]
sub esi, ecx
mov dword [esp + 0x34], esi
xchg esi, ebx
neg ebx
xchg esi, ebx
sar esi, 0x1f
and esi, ecx
mov ebp, dword [esp + 0x64]
add esi, ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x18], eax
call fcn.004747f0
movzx eax, byte [esp + 0x1c]
test al, al
je 0x47468f
mov eax, dword [esp + 0x38]
add eax, 3
mov ecx, dword [esp + 0x30]
add ecx, 4
mov edx, dword [esp + 0x4c]
mov ebx, dword [esp + 0x48]
jmp 0x4745bf
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov ecx, dword [esp + 0x44]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x10], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x14], edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x18], ebx
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x1c], ebp
call fcn.00473ed0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x38]
add ebx, ebp
test ecx, ecx
jne 0x4746fc
mov ebp, ecx
mov ecx, edx
mov edx, eax
mov eax, ebx
mov ebx, ebp
jmp 0x4745bf
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x50
ret
mov esi, dword [esp + 0x68]
mov ebp, ebx
mov ebx, ecx
mov ecx, edx
mov edx, eax
cmp ecx, esi
jge 0x4747ab
mov eax, dword [esp + 0x5c]
cmp ebp, eax
ja 0x4747d7
mov dword [esp + 0x40], ebp
mov edx, dword [esp + 0x54]
mov dword [esp], edx
mov ebx, dword [esp + 0x60]
sub ebx, ebp
mov dword [esp + 0x3c], ebx
neg ebx
sar ebx, 0x1f
and ebx, ebp
mov edi, dword [esp + 0x58]
add ebx, edi
mov dword [esp + 4], ebx
sub eax, ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], esi
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
call fcn.00473ed0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x40]
add ebx, ebp
test ecx, ecx
je 0x47470c
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x50
ret
mov dword [esp + 0x70], ebp
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], edx
add esp, 0x50
ret
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x50
ret
call fcn.004252e0
ud2
call fcn.004252e0
ud2
call fcn.00449fd0
jmp fcn.00474590