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

Disassembly:
sub esp, 0x28
mov edx, dword [0x8b8f30]
push ebx
push ebp
push esi
push edi
mov ebp, ecx
push 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x20], ebp
call fcn.0054a5c0
mov eax, dword [esp + 0x24]
test eax, eax
mov dword [esp + 0x20], 0
jle 0x5485f9
push 0xc4
call fcn.00587c03
add esp, 4
test eax, eax
je 0x5481de
mov ecx, eax
call fcn.00546250
mov ebx, eax
jmp 0x5481e0
xor ebx, ebx
mov dword [ebx + 0xb8], ebp
mov edx, dword [0x8b8f30]
push 0x20
mov ecx, ebx
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
lea esi, [ebx + 0x9c]
push 4
mov ecx, esi
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
push 0x10
lea ecx, [ebx + 0x54]
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
push 0x10
lea ecx, [ebx + 0x44]
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
push 0x10
lea ecx, [ebx + 0x64]
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
push 0x10
lea ecx, [ebx + 0x74]
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
push 4
lea ecx, [esp + 0x18]
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
push 4
lea ecx, [esp + 0x2c]
call fcn.0054a5c0
or dword [esi], 2
movzx eax, word [esp + 0x16]
movzx ecx, word [esp + 0x14]
push eax
push ecx
mov ecx, ebx
call fcn.00547240
mov edx, dword [esp + 0x28]
push edx
call fcn.005471c0
mov edx, dword [0x8b8f30]
lea esi, [ebx + 0xa4]
push 4
mov ecx, esi
call fcn.0054a5c0
mov esi, dword [esi]
test esi, esi
jle 0x548546
mov eax, esi
imul eax, eax, 0x94
add eax, 4
push eax
call fcn.00587c03
add esp, 4
test eax, eax
je 0x5482ec
lea ebp, [eax + 4]
mov dword [eax], esi
lea eax, [esi - 1]
test eax, eax
mov edi, ebp
jl 0x5482e4
lea esi, [eax + 1]
mov ecx, edi
call fcn.0054fb90
add edi, 0x94
dec esi
jne 0x5482d4
mov esi, ebp
mov ebp, dword [esp + 0x1c]
jmp 0x5482ee
xor esi, esi
mov eax, dword [ebx + 0xa4]
test eax, eax
mov dword [ebx + 0xa8], esi
mov dword [esp + 0x10], 0
jle 0x548546
lea ebx, [ebx]
mov edx, dword [0x8b8f30]
push 0x20
mov ecx, esi
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
lea ebp, [esi + 0x40]
push 4
mov ecx, ebp
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
lea ecx, [esi + 0x44]
push 4
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
lea edi, [esi + 0x48]
push 4
mov ecx, edi
call fcn.0054a5c0
cmp dword [edi], 1
jle 0x5483ae
mov edx, dword [0x8b8f30]
lea ecx, [esi + 0x50]
push 4
call fcn.0054a5c0
mov ecx, dword [esi + 0x50]
shl ecx, 2
push ecx
call fcn.00587c03
mov edx, dword [esi + 0x50]
shl edx, 2
add esp, 4
mov dword [edi + 4], eax
push edx
mov edx, dword [0x8b8f30]
mov ecx, eax
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
push 4
lea ecx, [esi + 0x54]
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
push 4
lea ecx, [esi + 0x58]
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
lea edi, [esi + 0x60]
push 4
mov ecx, edi
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
push 4
lea ecx, [esi + 0x64]
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
push 4
lea ecx, [esp + 0x30]
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
push 4
lea ecx, [esi + 0x6c]
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
push 4
lea ecx, [esi + 0x70]
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
push 4
lea ecx, [esi + 0x74]
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
push 4
lea ecx, [esi + 0x78]
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
push 4
lea ecx, [esi + 0x7c]
call fcn.0054a5c0
mov edx, dword [0x8b8f30]
push 4
lea ecx, [esp + 0x1c]
call fcn.0054a5c0
fild dword [esp + 0x2c]
push ecx
mov ecx, esi
fstp dword [esp]
call fcn.0054fc50
mov eax, dword [esp + 0x18]
and eax, 0xffffff
push eax
mov ecx, esi
call fcn.0054fcb0
mov ecx, dword [esp + 0x18]
shr ecx, 0x18
push ecx
mov ecx, esi
call fcn.0054fcc0
mov edx, dword [esi + 0x44]
mov eax, dword [ebp]
push edx
and eax, 0xc
push eax
mov ecx, esi
call fcn.0054fd50
mov eax, dword [edi]
cmp eax, 0x800000
jg 0x5484c6
je 0x5484b8
cmp eax, 0x100000
je 0x5484aa
cmp eax, 0x400000
jne 0x5484f6
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.00546fe0
jmp 0x5484ee
mov edx, dword [esp + 0x10]
push edx
mov ecx, ebx
call fcn.00546f30
jmp 0x5484f6
mov eax, dword [esp + 0x10]
push eax
mov ecx, ebx
call fcn.00546f70
jmp 0x5484ee
cmp eax, 0x1000000
je 0x5484e2
cmp eax, 0x8000000
jne 0x5484f6
mov ecx, dword [esp + 0x10]
push ecx
mov ecx, ebx
call fcn.005470a0
jmp 0x5484ee
mov edx, dword [esp + 0x10]
push edx
mov ecx, ebx
call fcn.00547040
test eax, eax
jne 0x548605
mov ecx, dword [ebp]
and ecx, 0xfffffeff
mov eax, ecx
test ah, 1
mov dword [ebp], ecx
je 0x548513
or dword [ebx + 0x9c], 0x200
mov eax, dword [ebp]
test ah, 2
je 0x548525
or dword [ebx + 0x9c], 0x4000
mov eax, dword [esp + 0x10]
mov ecx, dword [ebx + 0xa4]
add esi, 0x94
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x548310
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebx + 0x9c]
test ah, 2
lea esi, [ebx + 0x9c]
mov dword [esp + 0x10], esi
je 0x5485ac
mov ecx, dword [esp + 0x3c]
lea eax, [esp + 0x30]
push eax
push ecx
mov ecx, ebp
call fcn.00548a30
push 4
lea edx, [esp + 0x34]
push edx
lea eax, [ebx + 0x40]
push eax
call fcn.00587dd0
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
lea edi, [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
or ecx, 0xffffffff
mov esi, edi
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
shr ecx, 2
dec edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
push ebx
mov ecx, ebp
call fcn.005477f0
test eax, eax
jne 0x5485cd
push ebx
mov ecx, ebp
call fcn.00547670
mov eax, dword [esi]
test ah, ah
js 0x5485e4
or eax, 1
mov dword [esi], eax
jmp 0x5485e4
mov ecx, ebx
call fcn.00546370
mov ecx, ebx
call fcn.00557470
push ebx
call fcn.00587bcf
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x5481c2
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret 4
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x28
ret 4