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

Disassembly:
push 0xffffffffffffffff
push 0x509146
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0061e183
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xe4]
test eax, eax
je 0x543782
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x543782
push 1
push 0
push eax
call dword [fcn.00518634]
mov eax, dword [esi + 0xe4]
dec eax
js 0x5437db
lea edi, [eax + eax*2]
lea ebx, [eax + 1]
shl edi, 2
mov ecx, dword [esi + 0xec]
mov eax, dword [ecx + edi]
test eax, eax
je 0x5437a9
push eax
mov ecx, esi
call fcn.00565b8c
mov edx, dword [esi + 0xec]
mov eax, dword [edx + edi + 8]
test eax, eax
je 0x5437bf
push eax
mov ecx, esi
call fcn.00565b8c
mov eax, dword [esi + 0xec]
mov eax, dword [eax + edi + 4]
test eax, eax
je 0x5437d5
push eax
mov ecx, esi
call fcn.00565b8c
sub edi, 0xc
dec ebx
jne 0x543794
mov eax, dword [esi + 0xec]
test eax, eax
je 0x5437ee
push eax
call fcn.0060c2ba
add esp, 4
mov ebp, dword [esp + 0x80]
mov dword [esi + 0xe4], 0
lea ecx, [ebp + ebp*2]
shl ecx, 2
push ecx
call fcn.0060c291
add esp, 4
mov dword [esi + 0xec], eax
test eax, eax
je 0x543d38
mov eax, dword [esi + 0x150]
mov dword [esi + 0xe4], ebp
lea edx, [eax + eax*2]
mov eax, dword [esi + edx*4 + 0xe8]
test eax, eax
je 0x54383f
mov ecx, dword [eax + 0x30]
add ecx, 5
jmp 0x543844
mov ecx, 5
mov edx, dword [esi + 0x130]
mov eax, dword [esi + 0x14c]
mov edi, dword [esi + 0x120]
add eax, edx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x148]
mov dword [esp + 0x18], edx
mov ebx, dword [esi + 0x138]
lea edx, [eax + ecx]
sub eax, edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x40], ecx
cdq
sub eax, edx
mov edx, dword [esi + 0x124]
sar eax, 1
add edx, ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edx
lea edx, [edi + eax]
add edx, ecx
add eax, ecx
mov ecx, dword [esi + 0x140]
mov dword [esp + 0x60], eax
mov dword [esp + 0x20], ecx
add ecx, edi
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x50], eax
xor ebx, ebx
mov eax, dword [ecx + 0x1664]
mov dword [esp + 0x68], edx
mov dword [esp + 0x30], eax
mov eax, dword [ecx + 0x1668]
mov dword [esp + 0x58], edx
cmp ebp, ebx
mov edx, 5
mov dword [esp + 0x34], eax
jle 0x543d0f
mov ebp, 0xc8
xor edi, edi
mov dword [esp + 0x14], ebp
jmp 0x5438ed
mov ecx, dword [esp + 0x10]
lea edx, [ebp - 0xc8]
lea eax, [esp + 0x80]
push edx
push eax
call fcn.005b722c
push 0xb8
mov dword [esp + 0x7c], ebx
call fcn.0060c291
add esp, 4
mov dword [esp + 0x38], eax
cmp eax, ebx
mov byte [esp + 0x78], 1
je 0x54394d
lea ecx, [ebp - 0x64]
push ecx
mov ecx, dword [esp + 0x44]
sub esp, 0x10
mov edx, esp
push esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x30]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x34]
mov dword [edx + 0xc], ecx
mov ecx, eax
call fcn.0056beec
jmp 0x54394f
xor eax, eax
mov edx, dword [esi + 0xec]
mov byte [esp + 0x78], bl
mov dword [edx + edi + 4], eax
mov eax, dword [esi + 0xec]
mov ecx, dword [eax + edi + 4]
cmp ecx, ebx
je 0x5439d3
mov eax, dword [esi + 0xe8]
mov edx, dword [ecx]
push eax
call dword [edx + 0xb8]
mov ecx, dword [esi + 0xec]
push ebx
push ebx
push 0x1e
mov edx, dword [ecx + edi + 4]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [edx]
call fcn.005b99fc
push eax
mov eax, dword [esi + 0xec]
mov ecx, dword [eax + edi + 4]
call dword [ebp + 0xc4]
mov ecx, dword [esi + 0xec]
push ebx
push 0x552250
mov ecx, dword [ecx + edi + 4]
mov edx, dword [ecx]
call dword [edx + 0x7c]
mov eax, dword [esi + 0xec]
push ebx
push 0xc08f3800
push ebx
mov ecx, dword [eax + edi + 4]
mov edx, dword [ecx]
call dword [edx + 0x74]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
add eax, 5
push 0x130
mov dword [esp + 0x3c], eax
mov eax, dword [esi + 0x148]
lea ecx, [ecx + eax + 2]
add eax, ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], eax
call fcn.0060c291
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov byte [esp + 0x78], 2
je 0x543a3b
mov ecx, dword [esp + 0x50]
push ebp
sub esp, 0x10
mov edx, esp
push esi
mov dword [edx], ecx
mov ecx, dword [esp + 0x38]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x70]
mov dword [edx + 8], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edx + 0xc], ecx
mov ecx, eax
call fcn.0056b00c
jmp 0x543a3d
xor eax, eax
mov edx, dword [esi + 0xec]
mov byte [esp + 0x78], bl
mov dword [edx + edi + 8], eax
mov eax, dword [esi + 0xec]
mov eax, dword [eax + edi + 8]
cmp eax, ebx
je 0x543b7f
mov ecx, dword [esp + 0x10]
mov ebp, dword [eax]
push ebx
push ebx
push 0x1f
call fcn.005b99fc
mov ecx, dword [esi + 0xec]
push eax
push ebx
mov ecx, dword [ecx + edi + 8]
call dword [ebp + 0x158]
mov edx, dword [esi + 0xec]
mov ecx, dword [esp + 0x10]
push ebx
push ebx
mov eax, dword [edx + edi + 8]
push 0x20
mov ebp, dword [eax]
call fcn.005b99fc
mov ecx, dword [esi + 0xec]
push eax
push 1
mov ecx, dword [ecx + edi + 8]
call dword [ebp + 0x158]
mov eax, dword [esi + 0x15c]
cmp eax, ebx
je 0x543b2c
cmp dword [esi + 0x160], ebx
je 0x543b2c
mov edx, dword [esi + 0xec]
push ebx
push 1
push eax
mov ecx, dword [edx + edi + 8]
push ebx
call fcn.0056b37c
mov eax, dword [esi + 0x160]
mov ecx, dword [esi + 0xec]
push ebx
push 1
mov ecx, dword [ecx + edi + 8]
push eax
push 1
call fcn.0056b37c
mov eax, dword [esi + 0x164]
cmp eax, 0xffffffff
je 0x543b2c
test eax, 0xff000000
je 0x543b18
mov edx, dword [esi + 0xec]
and eax, 0x1ff
push ebx
push eax
mov ecx, dword [edx + edi + 8]
mov edx, dword [ecx]
call dword [edx + 0xdc]
jmp 0x543b2c
mov ecx, dword [esi + 0xec]
push ebx
push eax
mov ecx, dword [ecx + edi + 8]
mov edx, dword [ecx]
call dword [edx + 0xd4]
mov eax, dword [esi + 0xec]
push ebx
push ebx
mov eax, dword [eax + edi + 8]
mov dword [eax + 0xd4], 4
mov ecx, dword [esi + 0xec]
mov ecx, dword [ecx + edi + 8]
mov edx, dword [ecx]
call dword [edx + 0x154]
push ecx
lea eax, [esp + 0x84]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call fcn.0060c2c5
mov ecx, dword [esi + 0xec]
mov byte [esp + 0x7c], bl
mov ecx, dword [ecx + edi + 8]
mov edx, dword [ecx]
call dword [edx + 0x48]
mov ebp, dword [esp + 0x14]
mov eax, dword [esi + 0x148]
mov ecx, dword [esp + 0x50]
push 0xf8
lea ecx, [ecx + eax + 2]
mov eax, dword [esi + 0x120]
add eax, ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x5c], eax
call fcn.0060c291
add esp, 4
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov byte [esp + 0x78], 4
je 0x543bea
lea edx, [ebp + 0x64]
push edx
mov edx, dword [esp + 0x64]
sub esp, 0x10
mov ecx, esp
push esi
push 1
mov dword [ecx], edx
mov edx, dword [esp + 0x44]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x84]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x48]
mov dword [ecx + 0xc], edx
mov ecx, eax
call fcn.0056c63c
jmp 0x543bec
xor eax, eax
mov ecx, dword [esi + 0xec]
mov byte [esp + 0x78], bl
mov dword [ecx + edi], eax
mov edx, dword [esi + 0xec]
mov ecx, dword [edx + edi]
cmp ecx, ebx
je 0x543cbd
mov eax, dword [esi + 0x154]
push ebx
push ebx
push eax
push ebx
call fcn.0056c7cc
mov ecx, dword [esi + 0x158]
mov edx, dword [esi + 0xec]
push ebx
push ebx
push ecx
mov ecx, dword [edx + edi]
push 1
call fcn.0056c7cc
mov eax, dword [esi + 0xec]
push ebx
push 0x40240000
push ebx
mov ecx, dword [eax + edi]
push 0xc04e0000
push ebx
mov edx, dword [ecx]
call dword [edx + 0xb4]
mov eax, dword [esi + 0xec]
push ebx
push ebx
push ebx
mov ecx, dword [eax + edi]
mov edx, dword [ecx]
call dword [edx + 0x74]
mov eax, dword [esi + 0xec]
mov ecx, dword [esp + 0x30]
cmp ecx, ebx
mov eax, dword [eax + edi]
mov dword [eax + 0xd8], ecx
jne 0x543c84
mov dword [eax + 0xe0], ebx
mov dword [eax + 0xe4], ebx
mov ecx, dword [esi + 0xec]
mov edx, dword [esp + 0x34]
push ecx
mov eax, dword [ecx + edi]
mov ecx, esp
mov dword [esp + 0x40], esp
mov dword [eax + 0xe8], edx
lea eax, [esp + 0x84]
push eax
call fcn.0060c2c5
mov ecx, dword [esi + 0xec]
mov byte [esp + 0x7c], bl
mov ecx, dword [ecx + edi]
mov edx, dword [ecx]
call dword [edx + 0x48]
mov eax, dword [esi + 0x148]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x78], 0xffffffff
lea ecx, [ecx + eax + 2]
mov eax, dword [esi + 0x120]
mov dword [esp + 0x60], ecx
add eax, ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0x68], eax
call fcn.0060c550
mov eax, dword [esi + 0xe4]
inc ebp
add edi, 0xc
mov dword [esp + 0x14], ebp
lea edx, [ebp - 0xc8]
cmp edx, eax
jl 0x5438e9
mov edx, dword [esp + 0x38]
mov ecx, dword [esi + 0x68]
mov eax, dword [esi + 0x144]
cmp edx, ecx
jne 0x543d21
cmp eax, dword [esi + 0x6c]
je 0x543d38
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
mov dword [esi + 0x60], ebx
mov dword [esi + 0x68], edx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x6c], eax
call fcn.005663bc
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x6c
ret 4