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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x547614
sub esp, 0x7c
mov eax, dword [esp + 0x80]
mov ecx, dword [eax]
test ecx, ecx
je 0x547603
mov ecx, dword [eax + 4]
cmp ecx, 2
jge 0x5475e1
mov ecx, dword [0xc57878]
mov edx, dword [0xc5787c]
test ecx, ecx
jne 0x5475cf
mov byte [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov ecx, dword [0xc56ac8]
lea edx, [esp + 0x6c]
cmp edx, ecx
je 0x5472ad
mov dword [esp + 0x24], ecx
mov ebx, dword [ecx + 8]
mov ebp, dword [ecx + 4]
test ebx, ebx
jg 0x547530
mov esi, ebx
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov ebx, esi
cmp ebx, esi
jle 0x547529
mov dword [esp + 0x38], edi
mov dword [esp + 0x10], ebx
cmp edi, ebp
je 0x54728a
mov dword [esp], edi
mov dword [esp + 4], ebp
shl esi, 2
mov dword [esp + 8], esi
call fcn.004529a0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x24]
movzx eax, byte [eax]
mov byte [esp + 0x6c], al
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x1c], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x34], edx
xor ebx, ebx
jmp 0x5472f4
lea eax, [esp + 0x6c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x28]
mov dword [esp + 8], ecx
call fcn.004fb290
mov eax, dword [esp + 0x18]
lea ebx, [eax + 1]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
cmp ebx, ecx
jge 0x547356
mov dword [esp + 0x18], ebx
mov eax, dword [edx + ebx*4]
mov dword [esp + 0x28], eax
mov dword [esp], eax
mov ecx, dword [0xc56ac8]
mov dword [esp + 4], ecx
call fcn.004fbf70
mov eax, dword [esp + 8]
test eax, eax
jg 0x5472c6
lea eax, [0x85b840]
mov dword [esp], eax
call fcn.0040a800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1f
lea ecx, [0x8cf04a]
mov dword [eax], ecx
lea ecx, [0x96e8d0]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
mov ecx, dword [eax]
lea edx, [esp + 0x6c]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.004fbf70
mov eax, dword [esp + 8]
test eax, eax
jne 0x5474f0
mov byte [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov byte [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x4c]
mov dword [esp], edx
mov dword [esp + 4], ecx
sar ecx, 0x1f
mov dword [esp + 8], ecx
call fcn.004fa7b0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x80]
mov edx, dword [ecx + 8]
mov dword [esp], eax
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call fcn.004fb290
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x10]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x30], eax
xor edx, edx
jmp 0x547419
mov ebx, dword [esp + 0x18]
lea edx, [ebx + 1]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
cmp edx, ecx
jge 0x5474d6
mov dword [esp + 0x18], edx
mov ecx, dword [eax + edx*4]
mov byte [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
lea ebx, [esp + 0x3c]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov ecx, dword [0xc56ac8]
mov dword [esp + 8], ecx
call fcn.004fb040
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x5c]
mov dword [esp], ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
call fcn.004fbae0
lea eax, [esp + 0x5c]
mov dword [esp], eax
mov ecx, dword [0xc56ac8]
mov dword [esp + 4], ecx
call fcn.004fbf70
mov eax, dword [esp + 8]
test eax, eax
je 0x54740a
lea eax, [0x85b840]
mov dword [esp], eax
call fcn.0040a800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1d
lea ecx, [0x8cdc7d]
mov dword [eax], ecx
lea ecx, [0x96e8d0]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], 0
add esp, 0x7c
ret
lea eax, [0x85b840]
mov dword [esp], eax
call fcn.0040a800
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x1b
lea ecx, [0x8cc5a1]
mov dword [eax], ecx
lea ecx, [0x96e8d0]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], eax
add esp, 0x7c
ret
mov esi, ebx
jmp 0x54726b
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebp
cmp ebx, 1
jne 0x547590
lea eax, [0x843300]
mov dword [esp], eax
mov dword [esp + 4], 1
mov dword [esp + 8], 1
call fcn.0043d110
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x6c]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ebx, 1
mov eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x80]
jmp 0x547263
lea eax, [0x843300]
mov dword [esp], eax
mov dword [esp + 4], ebx
lea eax, [ebx + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 8], eax
call fcn.0043d110
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x6c]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ebx, esi
jmp 0x547263
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
add esp, 0x7c
ret
cmp ecx, 0x7fffffff
jle 0x5475fa
mov edx, dword [0xc57874]
mov ecx, dword [0xc57870]
jmp 0x547212
xor edx, edx
xor ecx, ecx
jmp 0x547212
mov ecx, dword [0xc57880]
mov edx, dword [0xc57884]
jmp 0x547212
call fcn.004507b0
jmp fcn.005471d0