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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2f4
mov eax, dword [0x502344]
xor eax, esp
mov dword [esp + 0x2f0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov ebx, ecx
mov esi, edx
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], esi
mov dword [esp + 0x70], eax
call fcn.004f52ca
mov esi, dword [esi + 4]
xor edi, edi
cmp esi, edi
mov dword [esp + 0x6c], esi
jle 0x54a2d3
lea eax, [esp + 0x40]
push eax
mov eax, ebx
call fcn.0054a1e9
cmp eax, edi
je 0x54a2d3
mov esi, eax
lea ecx, [esp + 0x40]
call fcn.004f169a
mov eax, esi
jmp 0x54aa49
lea ecx, [esp + 0x30]
call fcn.004f52ca
lea ecx, [esp + 0x24]
call fcn.004f52ca
cmp byte [ebp + 0x10], 0
jne 0x54a346
lea eax, [esp + 0x28]
lea esi, [ebx + 0x54]
push eax
call fcn.0053b337
pop ecx
lea edi, [esp + 0x30]
call fcn.005248cb
lea ecx, [esp + 0x28]
call fcn.004f169a
mov eax, edi
call fcn.0053af37
lea eax, [ebx + 0x5c]
lea edi, [esp + 0x24]
call fcn.005248cb
mov eax, edi
call fcn.0053af37
lea esi, [esp + 0x28]
mov ecx, ebx
call fcn.0054aa60
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
mov eax, edi
call fcn.00524b0b
mov ecx, esi
call fcn.004f169a
xor edi, edi
lea ecx, [esp + 0x50]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
call fcn.004f52ca
cmp dword [esp + 0x6c], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x1c], edi
jle 0x54a786
push 0x260
call fcn.00588c0e
mov esi, eax
pop ecx
cmp esi, edi
je 0x54a3ee
or dword [esi], 0xffffffff
mov byte [esi + 8], 1
xor eax, eax
mov word [esi + 0x28], ax
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x234], edi
mov dword [esi + 0x238], edi
mov dword [esi + 0x23c], edi
mov dword [esi + 0x240], edi
lea eax, [esi + 0x248]
mov dword [eax], edi
mov dword [eax + 4], edi
lea ecx, [esi + 0x258]
mov dword [esi + 0x250], edi
mov dword [esi + 0x254], edi
call fcn.004f52ca
mov dword [esp + 0x18], esi
jmp 0x54a3f2
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
jne 0x54a44a
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x18]
cmp edx, ecx
jb 0x54a417
lea edx, [ecx + eax*4]
lea esi, [esp + 0x18]
cmp esi, edx
jb 0x54a887
cmp eax, edi
jne 0x54a420
xor esi, esi
inc esi
jmp 0x54a432
mov esi, dword [esp + 0x10]
add esi, esi
cmp esi, edi
jl 0x54a463
cmp esi, 0x1fffffff
ja 0x54a463
push 4
push esi
push ecx
call fcn.00589589
add esp, 0xc
cmp eax, edi
je 0x54a463
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea eax, [eax + ecx*4]
cmp eax, edi
je 0x54a45f
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
call fcn.0054ac61
cmp dword [0x505ca8], edi
mov esi, dword [eax]
lea eax, [esi + 0x10]
mov dword [esp + 0x64], eax
mov al, byte [ebp + 0x10]
mov dword [esp + 0x28], esi
mov byte [esi + 8], al
jg 0x54a49c
lea eax, [esp + 0x40]
call fcn.0055b9d1
test al, al
je 0x54a891
lea ecx, [esp + 0x20]
call fcn.004f52ca
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
call fcn.0054ac61
cmp byte [ebp + 0x10], 0
mov eax, dword [eax]
je 0x54a5bd
mov ecx, dword [esp + 0x38]
mov dword [esi], eax
mov eax, dword [esp + 0x1c]
call fcn.0054ac61
mov eax, dword [eax]
lea ecx, [ebx + 0x68]
call fcn.0054abcc
mov ecx, dword [esp + 0x38]
mov edi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x78], edi
call fcn.0054ac61
mov eax, dword [eax]
lea ecx, [ebx + 0x68]
call fcn.0054abcc
mov eax, dword [eax + 8]
shr eax, 1
and al, 1
mov byte [esp + 0x2f], al
mov eax, dword [edi]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x18], eax
add edi, 0x18
lea eax, [esp + 0x60]
push edi
lea esi, [ebx + 0x5c]
push eax
call fcn.0054aafb
cmp dword [esp + 0x20], 9
pop ecx
pop ecx
je 0x54a52c
cmp dword [esp + 0x18], 0xa
jne 0x54a53f
mov edi, dword [esp + 0x28]
add edi, 0x258
lea eax, [esp + 0x60]
call fcn.005248cb
lea eax, [esp + 0x74]
push eax
lea esi, [esp + 0x64]
call fcn.0053b337
pop ecx
lea edi, [esp + 0x20]
call fcn.005248cb
lea ecx, [esp + 0x74]
call fcn.004f169a
movzx eax, byte [esp + 0x2f]
neg eax
sbb eax, eax
and eax, ebx
je 0x54a572
add eax, 4
jmp 0x54a574
xor eax, eax
mov edi, dword [esp + 0x64]
lea ecx, [ebx + 0xcc]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
mov eax, dword [esp + 0x84]
push 0
push dword [eax + 0xc]
push 0
push dword [eax + 0x10]
lea eax, [ebx + 0x54]
call fcn.0055ba4d
mov esi, eax
lea eax, [ebx + 0xa4]
push eax
push 1
lea ecx, [esp + 0x28]
call fcn.0053c8a7
pop ecx
pop ecx
lea ecx, [esp + 0x60]
jmp 0x54a718
lea esi, [ebx + 0x8c]
mov ecx, esi
call fcn.00551721
mov eax, dword [eax + 4]
mov dword [esp + 0x18], eax
cmp eax, 9
je 0x54a5db
cmp eax, 0xa
jne 0x54a61b
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
call fcn.0054ac61
mov eax, dword [eax]
mov ecx, esi
call fcn.00551721
push eax
lea eax, [esp + 0x40]
lea esi, [ebx + 0x5c]
push eax
call fcn.0054aafb
mov edi, dword [esp + 0x30]
pop ecx
pop ecx
add edi, 0x258
call fcn.005248cb
lea ecx, [esp + 0x3c]
call fcn.004f169a
xor edi, edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
call fcn.0054ac61
mov eax, dword [eax]
lea ecx, [ebx + 0x8c]
call fcn.00551721
push eax
lea eax, [esp + 0x6c]
push eax
lea esi, [esp + 0x38]
call fcn.0054aafb
push 0x24c
lea eax, [esp + 0xb8]
push edi
push eax
mov dword [esp + 0xbc], edi
call fcn.00589607
add esp, 0x14
lea eax, [esp + 0xa8]
push eax
push dword [esp + 0x6c]
call dword [fcn.004cf2c4]
push 1
push edi
push edi
push dword [esp + 0xd0]
mov dword [esp + 0xa8], eax
call fcn.00590b07
mov esi, eax
mov eax, dword [esp + 0xc8]
xor ecx, ecx
add esi, eax
adc edx, ecx
cmp dword [esp + 0x18], 6
mov dword [esp + 0xa4], edx
je 0x54a6ae
cmp dword [esp + 0x18], 7
jne 0x54a6b4
lea eax, [esp + 0x24]
jmp 0x54a6b7
lea eax, [ebx + 0x5c]
lea edi, [esp + 0x20]
call fcn.005248cb
lea eax, [ebx + 0xcc]
push eax
mov eax, edi
mov edi, dword [esp + 0x68]
push eax
xor eax, eax
push eax
push dword [esp + 0xb0]
push esi
push eax
push eax
lea eax, [esp + 0x84]
call fcn.0055ba4d
mov esi, eax
lea eax, [ebx + 0xa4]
push eax
push 1
lea ecx, [esp + 0x28]
call fcn.0053c8a7
cmp dword [esp + 0xa0], 0
pop ecx
pop ecx
je 0x54a714
push dword [esp + 0x98]
call dword [fcn.004cf2f0]
lea ecx, [esp + 0x68]
call fcn.004f169a
test esi, esi
jne 0x54a92d
cmp byte [ebx + 0x84], 0
je 0x54a746
cmp dword [esp + 0x18], 6
jne 0x54a746
lea ebx, [esp + 0x20]
lea esi, [esp + 0x44]
call fcn.0053a1e7
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0x70]
cmp dword [eax], 0
je 0x54a769
push dword [esp + 0x64]
call dword [0x505cb0]
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0x250], eax
mov dword [ecx + 0x254], edx
lea ecx, [esp + 0x20]
call fcn.004f169a
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, dword [esp + 0x6c]
jl 0x54a381
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x70]
mov dword [esp + 0x80], eax
lea eax, [esp + 0xc]
mov dword [esp + 0x84], eax
mov eax, esi
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x88], ebx
mov dword [esp + 0x90], edi
mov dword [esp + 0x94], edi
call fcn.0055c349
mov dword [esp + 0x3c], eax
cmp eax, edi
je 0x54a97d
mov esi, dword [fcn.004cf314]
cmp dword [esp + 0x90], edi
je 0x54a7ee
push dword [esp + 0x90]
call esi
mov dword [esp + 0x90], edi
cmp dword [esp + 0x58], edi
je 0x54a7fe
push dword [esp + 0x58]
call esi
mov dword [esp + 0x58], edi
lea ecx, [esp + 0x50]
call fcn.004f169a
lea esi, [esp + 0x44]
call fcn.00525cd4
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x54a850
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0054ac61
mov esi, dword [eax]
cmp esi, edi
je 0x54a849
lea ecx, [esi + 0x258]
call fcn.004f169a
lea eax, [esi + 0x10]
call fcn.0055b970
push esi
call fcn.00588b77
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x54a81e
cmp dword [esp + 0xc], edi
je 0x54a864
push dword [esp + 0xc]
call fcn.00588c73
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004f169a
lea ecx, [esp + 0x30]
call fcn.004f169a
mov esi, dword [esp + 0x3c]
jmp 0x54a2c3
push 0x80004005
call fcn.004f1a31
cmp dword [esp + 0x58], edi
je 0x54a8a5
push dword [esp + 0x58]
call dword [fcn.004cf314]
mov dword [esp + 0x58], edi
lea ecx, [esp + 0x50]
call fcn.004f169a
lea esi, [esp + 0x44]
call fcn.00525cd4
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x54a8f7
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0054ac61
mov esi, dword [eax]
cmp esi, edi
je 0x54a8f0
lea ecx, [esi + 0x258]
call fcn.004f169a
lea eax, [esi + 0x10]
call fcn.0055b970
push esi
call fcn.00588b77
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x54a8c5
cmp dword [esp + 0xc], edi
je 0x54a90b
push dword [esp + 0xc]
call fcn.00588c73
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004f169a
lea ecx, [esp + 0x30]
call fcn.004f169a
push 0xb
pop esi
jmp 0x54a2c3
lea ecx, [esp + 0x20]
call fcn.004f169a
cmp dword [esp + 0x58], 0
je 0x54a94c
push dword [esp + 0x58]
call dword [fcn.004cf314]
and dword [esp + 0x58], 0
lea ecx, [esp + 0x50]
call fcn.004f169a
lea esi, [esp + 0x44]
call fcn.00525cd4
lea esi, [esp + 0xc]
call fcn.0054ac82
lea ecx, [esp + 0x24]
call fcn.004f169a
lea ecx, [esp + 0x30]
call fcn.004f169a
push 0xe
jmp 0x54a927
mov eax, dword [esi + 8]
lea ecx, [esp + 0x44]
call fcn.0055bb8b
mov esi, dword [fcn.004cf314]
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x90], edi
je 0x54a9ac
push dword [esp + 0x90]
call esi
mov dword [esp + 0x90], edi
cmp dword [esp + 0x58], edi
je 0x54a9bc
push dword [esp + 0x58]
call esi
mov dword [esp + 0x58], edi
lea ecx, [esp + 0x50]
call fcn.004f169a
lea esi, [esp + 0x44]
call fcn.00525cd4
mov eax, dword [esp + 0x10]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x34], eax
jle 0x54aa0e
mov eax, ebx
lea ecx, [esp + 0xc]
call fcn.0054ac61
mov esi, dword [eax]
cmp esi, edi
je 0x54aa07
lea ecx, [esi + 0x258]
call fcn.004f169a
lea eax, [esi + 0x10]
call fcn.0055b970
push esi
call fcn.00588b77
pop ecx
inc ebx
cmp ebx, dword [esp + 0x34]
jl 0x54a9dc
cmp dword [esp + 0xc], edi
je 0x54aa22
push dword [esp + 0xc]
call fcn.00588c73
pop ecx
mov dword [esp + 0xc], edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
call fcn.004f169a
lea ecx, [esp + 0x30]
call fcn.004f169a
lea ecx, [esp + 0x40]
call fcn.004f169a
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x2fc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00588b82
mov esp, ebp
pop ebp
ret 0xc