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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x54f7fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov byte [eax], 0
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
test esi, esi
je 0x54f7d6
lea edx, [ebp - 0x24]
mov eax, esi
call fcn.004112e8
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 8]
call fcn.00411afc
mov eax, dword [ebx + 0x178]
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov edi, eax
cmp edi, 0xffffffff
jle 0x54f544
mov eax, dword [ebx + 0x178]
mov edx, edi
call fcn.005815bc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp - 0x14]
mov edx, dword [0x448994]
call fcn.00405348
test al, al
je 0x54f7db
mov eax, dword [ebx + 0x178]
mov edx, edi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, dword [0x57e2a0]
call fcn.0040536c
mov ebx, eax
movzx eax, byte [ebx + 0xc]
cmp al, 2
jne 0x54f504
mov eax, dword [ebp - 0x10]
mov byte [eax], 2
jmp 0x54f537
cmp al, 3
jne 0x54f510
mov eax, dword [ebp - 0x10]
mov byte [eax], 3
jmp 0x54f537
mov eax, dword [ebp - 0x10]
cmp byte [eax], 1
jne 0x54f537
cmp dword [ebx + 0x14], 0
jne 0x54f52d
mov eax, dword [ebx + 0x10]
xor ecx, ecx
xor edx, edx
call fcn.00582a0c
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x14], 0
je 0x54f537
mov byte [ebx + 0xc], 1
mov eax, dword [ebx + 0x14]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x54f7db
xor eax, eax
mov dword [ebp - 0x14], eax
movzx eax, word [ebx + 0x7a]
test ax, ax
jne 0x54f560
cmp word [ebx + 0x82], 0
je 0x54f720
test ax, ax
je 0x54f5be
mov dword [ebp - 0x20], 0xffffffff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
mov edx, dword [ebx + 0x6c]
mov ecx, esi
mov eax, dword [ebx + 0x7c]
call dword [ebx + 0x78]
cmp dword [ebp - 0x14], 0
je 0x54f5be
cmp dword [ebp - 0x20], 0xffffffff
je 0x54f5a5
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [ebp - 0x14]
call fcn.00582a0c
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
mov byte [eax], 2
jmp 0x54f5be
mov eax, dword [ebp - 0x10]
cmp byte [eax], 1
jne 0x54f5be
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00582a0c
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
cmp word [ebx + 0x82], 0
je 0x54f732
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov edx, dword [ebx + 0x6c]
mov ecx, esi
mov eax, dword [ebx + 0x84]
call dword [ebx + 0x80]
mov eax, dword [0x5d7ab0]
mov eax, dword [eax]
cmp eax, dword [ebp - 0x1c]
jne 0x54f5fd
mov eax, dword [ebp + 8]
mov byte [eax], 1
jmp 0x54f732
cmp dword [ebp - 0x1c], 0
jne 0x54f62b
push ebp
lea ecx, [ebp - 0x28]
mov eax, dword [ebx + 0x6c]
mov edx, esi
mov esi, dword [eax]
call dword [esi + 0x104]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
call fcn.0054f370
pop ecx
mov dword [ebp - 0x14], eax
jmp 0x54f732
cmp dword [ebp - 0x1c], 0
je 0x54f732
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
je 0x54f732
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x54f659
cmp eax, 1
jb 0x54f732
jmp 0x54f65f
jl 0x54f732
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
call fcn.00582528
add al, 0xfe
sub al, 2
jae 0x54f682
lea eax, [ebp - 1]
mov edx, dword [ebp - 0x1c]
call fcn.005377cc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x54f70d
cmp byte [ebp - 1], 0
je 0x54f732
mov esi, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x448994]
call fcn.00450420
mov dword [ebp - 0x14], eax
mov eax, esi
call fcn.00537f10
mov edx, eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp byte [esi + 0x1c], 0
je 0x54f6eb
mov dl, 1
mov eax, dword [0x448994]
call fcn.00450420
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, esi
call fcn.00537f84
mov edx, eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
mov byte [eax], 2
jmp 0x54f704
mov eax, dword [ebp - 0x10]
cmp byte [eax], 1
jne 0x54f704
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.00582a0c
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, esi
call fcn.00405134
jmp 0x54f732
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call fcn.00582944
mov dword [ebp - 0x14], eax
jmp 0x54f732
push ebp
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov eax, esi
call fcn.0054f370
pop ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x54f7db
xor edx, edx
push ebp
push 0x54f7ca
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0
je 0x54f75a
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
jmp 0x54f75c
xor eax, eax
mov edx, dword [ebp + 0x10]
mov edx, dword [edx]
push edx
push eax
mov ecx, dword [ebp - 0x14]
mov dl, 1
mov eax, dword [0x57e2a0]
call fcn.005813e4
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x54f79e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x178]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54f7c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x54f7db
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54f805
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00407350
lea eax, [ebp - 8]
call fcn.00407348
ret