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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x54a97d
sub esp, 0x50
mov eax, dword [esp + 0x64]
mov dword [esp], eax
mov ecx, dword [esp + 0x68]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x6c]
mov dword [esp + 8], edx
call fcn.0054ba60
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x54a960
mov dword [esp + 0x28], eax
mov dword [esp], eax
mov ecx, dword [esp + 0x64]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x68]
mov dword [esp + 8], edx
movzx ebx, byte [esp + 0x70]
mov byte [esp + 0xc], bl
call fcn.0054c040
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x54a922
lea eax, [0x80b000]
mov dword [esp], eax
call fcn.00409c40
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x68]
cmp ecx, 1
sete dl
mov byte [eax + 0x139], dl
cmp ecx, 2
je 0x54a91b
cmp ecx, 3
setne dl
mov byte [eax + 0x13a], dl
mov edx, dword [esp + 0x64]
mov dword [eax + 0x140], edx
mov dword [eax + 0x144], ecx
mov edx, dword [esp + 0x60]
mov dword [eax + 0x150], edx
mov edx, dword [0xb92b90]
test edx, edx
jne 0x54a903
mov edx, dword [esp + 0x5c]
mov dword [eax + 0x14c], edx
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x74]
test edx, edx
je 0x54a8fa
mov ebx, dword [esp + 0x7c]
test ebx, ebx
je 0x54a7c2
mov dword [esp], eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x1c], ecx
call fcn.0054aa50
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x54a79d
mov dword [esp + 0x48], eax
mov dword [esp + 0x30], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.005390e0
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x30]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x90], eax
add esp, 0x50
ret
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x50
ret
cmp ecx, 1
jne 0x54a85e
mov dword [esp], eax
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x78]
mov dword [esp + 8], ecx
mov ecx, dword [0xb92878]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x10], ecx
call fcn.0054b0c0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x54a839
mov dword [esp + 0x40], eax
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.005390e0
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x34]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x90], eax
add esp, 0x50
ret
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x50
ret
cmp ecx, 2
je 0x54a871
cmp ecx, 5
je 0x54a7cb
jmp 0x54a71a
mov dword [esp], eax
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x78]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0xc], ecx
call fcn.0054b510
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x54a8d5
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call fcn.005390e0
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x90], eax
add esp, 0x50
ret
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
add esp, 0x50
ret
mov ebx, dword [esp + 0x7c]
jmp 0x54a71a
lea edi, [eax + 0x14c]
mov edx, eax
mov eax, dword [esp + 0x5c]
call fcn.0044c990
mov eax, edx
jmp 0x54a6fe
xor edx, edx
jmp 0x54a6c6
mov dword [esp + 0x4c], eax
mov dword [esp + 0x38], ecx
mov edx, dword [0xb78404]
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov eax, dword [edx]
call eax
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x90], eax
add esp, 0x50
ret
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], edx
mov dword [esp + 0x90], ecx
add esp, 0x50
ret
call fcn.0044b230
jmp fcn.0054a610