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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x54f697
sub esp, 0x6c
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x54f401
cmp ecx, 1
je 0x54f399
cmp ecx, 0x10
jne 0x54f331
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 4
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea ecx, [0x69f8d4]
mov dword [esp], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 4], ecx
call fcn.00409020
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, ecx
mov ecx, eax
mov eax, dword [esp + 0x74]
jmp 0x54f405
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
lea ecx, [0x69f938]
mov dword [esp], ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 4], ecx
call fcn.00409020
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, ecx
mov ecx, eax
mov eax, dword [esp + 0x74]
jmp 0x54f405
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 1
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
lea ecx, [0x69f8d4]
mov dword [esp], ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 4], ecx
call fcn.00409020
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, ecx
mov ecx, eax
mov eax, dword [esp + 0x74]
jmp 0x54f405
xor ecx, ecx
xor edx, edx
test ecx, ecx
jne 0x54f55e
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x54f476
mov edx, dword [ecx + 4]
test edx, edx
jle 0x54f476
mov edx, dword [esp + 0x70]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], ecx
call fcn.0054ee10
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
test eax, eax
jne 0x54f446
mov eax, dword [esp + 0x74]
jmp 0x54f476
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x6c
ret
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.0054ebb0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 8]
mov ebp, dword [esp + 0xc]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x54f52e
test ebp, ebp
je 0x54f4d7
mov dword [esp + 0x48], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], esi
lea edx, [esi - 1]
neg edx
sar edx, 0x1f
and edx, 4
add edx, ebx
mov dword [esp + 0x44], edx
lea edi, [ebp - 1]
mov dword [esp + 0x34], edi
xor eax, eax
jmp 0x54f591
lea eax, [0x615300]
mov dword [esp], eax
call fcn.0040b5f0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x3d
lea ecx, [0x64edf5]
mov dword [eax], ecx
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
lea ecx, [0x69f4b0]
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], eax
add esp, 0x6c
ret
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x6c
ret
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x6c
ret
inc eax
mov esi, ecx
cmp eax, edi
jge 0x54f663
mov ecx, esi
mov esi, dword [edx + eax*4]
cmp dword [esi + 0x4c], 3
jne 0x54f58e
cmp eax, ebp
jae 0x54f68f
mov dword [esp + 0x30], eax
mov ecx, dword [ebx + eax*4]
mov edx, dword [ecx + 0x48]
mov ebp, dword [ecx + 0x10]
mov edi, dword [ecx + 0x14]
mov ebx, dword [ecx + 0xc]
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 0x40]
mov ecx, dword [ecx + 0x44]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x50]
mov esi, dword [esi + 0x54]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edi
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], esi
call fcn.00555960
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
test eax, eax
jne 0x54f633
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x48]
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
jmp 0x54f58e
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], edx
add esp, 0x6c
ret
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], ebp
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
add esp, 0x6c
ret
mov ecx, ebp
call fcn.0045e650
nop
call fcn.0045d190
jmp fcn.0054f290