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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x128
mov eax, dword [esp + 0x13c]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x140]
mov dword [esp + 0x50], eax
cmp dword [eax], 0
jne 0x54f595
mov eax, dword [esp + 0x50]
mov ecx, eax
add ecx, 4
mov dword [esp + 0x8c], ecx
test byte [eax + 0xe], 1
jne 0x54f656
jmp 0x54f5cd
mov ecx, dword [esp + 0x50]
mov eax, ecx
add eax, 8
mov dword [esp + 0x44], eax
mov dword [esp + 0xe0], eax
mov eax, dword [ecx + 0x1c]
mov edx, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x34]
mov dword [esp + 0xe4], edx
mov dword [esp + 0xe8], ecx
cmp eax, ecx
je 0x54f881
jmp 0x54f810
mov eax, dword [esp + 0x50]
mov cl, byte [eax + 0xc]
mov byte [esp + 0x37], cl
and cl, 1
mov byte [esp + 0x93], cl
mov cl, byte [eax + 0xc]
xor cl, 0xff
and cl, 1
mov byte [eax + 0xc], cl
mov edx, dword [eax + 4]
mov dword [esp + 0x38], edx
mov dword [esp + 0x94], edx
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x3c], ecx
mov eax, dword [eax + 0x34]
mov dword [esp + 0x40], eax
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], eax
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00540be0
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x78]
mov eax, 1
xor ecx, ecx
cmp edx, 0
cmove eax, ecx
cmp eax, 0
je 0x54f665
jmp 0x54f68a
mov eax, dword [esp + 0x48]
mov dword [eax], 2
jmp 0x54f801
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x38]
mov eax, esp
mov dword [eax + 0xc], edx
mov dword [eax + 8], esi
mov dword [eax + 4], edx
mov dword [eax], ecx
mov dword [eax + 0x10], 0x607978
call fcn.005f7030
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x7c]
mov dword [esp + 0xa8], ecx
mov dword [esp + 0xac], edx
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], edx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], edx
mov dword [esp + 0xc4], ecx
mov dword [esp + 0xc8], ecx
mov eax, ecx
add eax, edx
mov dword [esp + 0xcc], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x58]
mov dword [esp + 0xd0], eax
lea eax, [esp + 0x58]
mov dword [esp], eax
call fcn.005441c0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], edx
cmp dword [esp + 0x80], 0
jne 0x54f71d
mov al, byte [esp + 0x37]
test al, 1
jne 0x54f745
jmp 0x54f731
mov eax, dword [esp + 0x84]
mov dword [esp + 0x30], eax
mov dword [esp + 0xd4], eax
jmp 0x54f75e
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x50]
mov byte [ecx + 0xe], 1
mov dword [eax], 2
jmp 0x54f759
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x38]
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax], 0
jmp 0x54f801
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call fcn.00540da0
mov al, byte [esp + 0x37]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x54], ecx
test al, 1
jne 0x54f745
mov eax, dword [esp + 0x54]
mov dword [esp + 0x2c], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
cmp eax, 0x80
jb 0x54f7a4
mov eax, dword [esp + 0x2c]
cmp eax, 0x800
jb 0x54f7bb
jmp 0x54f7ae
mov dword [esp + 0x60], 1
jmp 0x54f7d7
mov eax, dword [esp + 0x2c]
cmp eax, 0x10000
jb 0x54f7cf
jmp 0x54f7c5
mov dword [esp + 0x60], 2
jmp 0x54f7d7
mov dword [esp + 0x60], 4
jmp 0x54f7d7
mov dword [esp + 0x60], 3
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x50]
mov esi, dword [ecx + 4]
add esi, dword [esp + 0x60]
mov dword [ecx + 4], esi
mov ecx, dword [ecx + 4]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax], 1
jmp 0x54f759
mov eax, dword [esp + 0x4c]
add esp, 0x128
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x50]
cmp dword [edx + 0x1c], 0xffffffff
sete cl
mov ch, cl
and ch, 1
mov byte [esp + 0xef], ch
mov esi, dword [eax + 0x30]
mov edi, dword [eax + 0x34]
mov dword [esp + 0xf0], esi
mov dword [esp + 0xf4], edi
mov ebx, dword [eax + 0x38]
mov ebp, dword [eax + 0x3c]
mov dword [esp + 0xf8], ebx
mov dword [esp + 0xfc], ebp
mov eax, esp
mov dword [eax + 0x14], ebp
mov dword [eax + 0x10], ebx
mov dword [eax + 0xc], edi
mov dword [eax + 8], esi
mov dword [eax + 4], edx
lea edx, [esp + 0x64]
mov dword [eax], edx
movzx ecx, cl
and ecx, 1
mov dword [eax + 0x18], ecx
call fcn.0054ea10
cmp dword [esp + 0x64], 1
je 0x54f890
jmp 0x54f8a9
mov eax, dword [esp + 0x48]
mov dword [eax], 2
jmp 0x54f801
mov eax, dword [esp + 0x68]
mov dword [esp + 0x28], eax
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x70], eax
jmp 0x54f8c6
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x64]
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
jmp 0x54f801
mov eax, dword [esp + 0x50]
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x1c], ecx
mov eax, dword [eax + 0x34]
mov dword [esp + 0x20], eax
mov dword [esp + 0x104], ecx
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x24], eax
mov dword [esp + 0x10c], eax
cmp eax, 0
jne 0x54f8fc
jmp 0x54f91c
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x110], edx
mov dword [esp + 0x114], ecx
cmp eax, ecx
jb 0x54f97c
jmp 0x54f967
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x120], ecx
mov eax, dword [eax + 0x14]
mov dword [esp + 0x124], eax
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00544020
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 0x14], esi
mov ecx, dword [esp + 0x70]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax], 1
jmp 0x54f801
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
sete al
and al, 1
mov byte [esp + 0x77], al
jmp 0x54f9a0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x118], eax
mov al, byte [eax + ecx]
mov byte [esp + 0x11f], al
cmp al, 0xc0
setge al
and al, 1
mov byte [esp + 0x77], al
test byte [esp + 0x77], 1
jne 0x54f91c
mov eax, dword [esp + 0x70]
add eax, 1
mov dword [esp + 0x70], eax
jmp 0x54f8c6