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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ecx + 0x1c]
mov dword [esp], edx
mov dword [esp + 0x18], ecx
mov ebx, dword [eax + 8]
mov eax, dword [ecx + 0x18]
add ebx, edx
adc esi, 0
cmp ebx, eax
mov dword [esp + 0xc], ebx
mov edx, esi
mov dword [esp + 0x14], esi
sbb edx, edi
cmovae eax, ebx
cmovae edi, esi
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], edi
cmp dword [ecx], 0
je 0x54a9c0
mov edx, dword [ecx + 4]
lea ebx, [ecx + 4]
lea edi, [esp + 0x48]
mov eax, ecx
mov ecx, edi
push dword [ebp + 8]
mov esi, dword [esp + 4]
push esi
push dword [eax + 8]
call fcn.0052f2e4
add esp, 0xc
mov eax, dword [edi]
mov dword [esp + 4], ebx
or eax, dword [edi + 4]
mov edi, esi
je 0x54a99c
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
cmp eax, edi
mov ecx, edx
mov dword [esp + 8], eax
sbb ecx, dword [ebp + 8]
jae 0x54aa01
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], edi
mov ebx, edi
mov edi, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 8], 0
mov dword [esp + 0x20], eax
jmp 0x54aa83
mov edi, dword [ecx + 0x10]
mov eax, dword [ebp + 8]
mov ebx, dword [ecx + 0x14]
cmp dword [esp], edi
mov dword [esp + 4], eax
sbb eax, ebx
jae 0x54abc6
cmp edi, dword [esp + 0xc]
mov eax, ebx
mov ecx, dword [ebp + 0xc]
sbb eax, dword [esp + 0x14]
jae 0x54ac44
mov edx, edi
sub edx, dword [esp]
call fcn.00530475
mov dword [esp], edi
mov dword [esp + 4], ebx
jmp 0x54abc6
mov ecx, ebx
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x10], edx
mov edx, ebx
push esi
call fcn.0052b39f
pop eax
mov ecx, dword [ebp + 8]
cmp edi, ebx
mov edx, dword [esp + 8]
mov eax, ecx
sbb eax, esi
cmovb esi, ecx
cmovb ebx, edi
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
cmp ebx, edx
mov eax, esi
sbb eax, ecx
mov eax, edx
cmovb eax, ebx
mov dword [esp + 0x1c], eax
mov eax, ecx
cmovb eax, esi
cmp edx, ebx
mov edx, ecx
sbb edx, esi
mov dword [esp + 0x10], eax
cmovae ebx, dword [esp + 8]
cmovae esi, ecx
xor eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esp + 8], 0
mov edx, ebx
mov ebx, edi
xor ebx, dword [esp + 0x1c]
or ebx, eax
mov ebx, edi
mov edi, edx
setne cl
mov eax, dword [esp + 4]
lea edx, [esp + 0x48]
mov dword [edx + 0x28], eax
mov eax, dword [esp + 8]
mov dword [edx], ecx
mov ecx, dword [ebp + 8]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [edx + 8], ebx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [edx + 0x14], eax
mov eax, dword [esp + 0x24]
mov dword [edx + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [edx + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [edx + 0x24], esi
mov esi, ecx
mov dword [edx + 0x20], edi
add eax, 0x20
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x78]
lea edx, [esp + 0x48]
call fcn.0052f65a
mov eax, dword [esp + 0x78]
or eax, dword [esp + 0x7c]
je 0x54ab88
mov edi, dword [esp + 0x80]
mov eax, esi
mov ecx, dword [esp + 0x8c]
cmp ebx, edi
mov dword [esp], ecx
sbb eax, dword [esp + 0x84]
mov eax, esi
mov esi, dword [esp + 0x88]
jae 0x54ab70
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, edi
lea ecx, [esp + 0x28]
sub eax, ebx
push eax
call fcn.00455766
pop eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ebx
lea edx, [esp + 0x28]
add dword [eax + 0x2c], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x3c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x40], ecx
add dword [eax + 0x30], ecx
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x44], 0
call fcn.00528632
jmp 0x54ab72
mov edi, ebx
mov ecx, dword [ebp + 0xc]
mov edx, esi
sub edx, edi
call fcn.00530475
mov ebx, esi
mov esi, dword [esp]
jmp 0x54aacf
mov dword [esp + 4], esi
lea esi, [esp + 0x28]
lea edi, [esp + 0x48]
mov dword [esp], ebx
mov ecx, esi
mov edx, edi
call fcn.0052f65a
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x2c]
jne 0x54ab97
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x60]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
push dword [esp + 0x6c]
call fcn.0052a9c7
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
test eax, eax
je 0x54ac44
mov edi, ecx
mov ecx, dword [ecx + 4]
lea edx, [esp + 0x48]
mov esi, dword [esp + 0x18]
mov ebx, dword [edi + 0xc]
mov dword [edx + 4], ecx
mov ecx, dword [edi]
add dword [esi + 0x2c], eax
mov dword [edx], ecx
mov ecx, dword [esp + 4]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ebx
mov ebx, dword [esp]
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [edx + 0x10], ebx
add dword [esi + 0x30], ecx
mov dword [edx + 0x18], ecx
lea ecx, [esi + 0x20]
mov byte [edx + 0x1c], 0
call fcn.00528632
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x2c]
mov edi, dword [esi + 0x30]
mov edx, 0x8000
sub eax, dword [esi + 0x10]
cmp ecx, eax
cmovb eax, ecx
sub edi, eax
lea eax, [eax + eax*2]
shr eax, 1
cmp eax, 0x8001
cmovae edx, eax
cmp edi, edx
jbe 0x54ac49
mov ecx, esi
call fcn.00530951
jmp 0x54ac49
call fcn.00489f6a
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret