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

Disassembly:
sub esp, 0x10c
xor eax, eax
push ebx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0xd8], eax
mov dword [esp + 0xdc], eax
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], eax
mov dword [esp + 0xe8], eax
mov dword [esp + 0xec], eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x100], eax
mov dword [esp + 0x104], eax
mov dword [esp + 0x108], eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xb8], eax
mov dword [esp + 0xbc], eax
mov dword [esp + 0xc0], eax
mov dword [esp + 0xc4], eax
mov dword [esp + 0xc8], eax
mov dword [esp + 0xcc], eax
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
mov eax, dword [esi + 0x5c]
cmp eax, ebp
push edi
mov dword [esp + 0x14], ebp
jle 0x542582
mov dword [esp + 0x10], eax
jmp 0x5424f0
mov eax, dword [esi + 0x60]
add eax, ebp
test dword [eax + 0x84], 0x400
jne 0x542571
mov ecx, dword [eax + 4]
call fcn.0053f310
mov ecx, dword [esi + 0x60]
movsx edi, word [ecx + ebp + 0xbc]
lea edx, [ecx + ebp]
mov ecx, eax
sub ecx, 0
je 0x54253a
mov ebx, 1
sub ecx, ebx
je 0x542531
sub ecx, ebx
jne 0x542544
add dword [esp + 0x14], ebx
jmp 0x542571
add dword [esp + edi*4 + 0xdc], ebx
jmp 0x54254c
add dword [esp + edi*4 + 0x9c], 1
jmp 0x54254c
test eax, eax
jl 0x542571
cmp eax, ebx
jg 0x542571
mov ebx, dword [edx + 4]
mov ecx, dword [esi + 0x140]
push ebx
call fcn.004ec510
add dword [esp + edi*4 + 0x18], eax
mov ecx, dword [esi + 0x140]
push ebx
lea edi, [esp + edi*4 + 0x5c]
call fcn.004ec4f0
add dword [edi], eax
add ebp, 0x188
sub dword [esp + 0x10], 1
jne 0x5424f0
xor edx, edx
xor esi, esi
xor eax, eax
jmp 0x542590
mov ecx, dword [esp + eax + 0x9c]
add ecx, dword [esp + eax + 0xa0]
add eax, 0x18
add ecx, dword [esp + eax + 0x8c]
add ecx, dword [esp + eax + 0x90]
add ecx, dword [esp + eax + 0x98]
add ecx, dword [esp + eax + 0x94]
add edx, ecx
mov ecx, dword [esp + eax + 0xd8]
add ecx, dword [esp + eax + 0xd4]
add ecx, dword [esp + eax + 0xd0]
add ecx, dword [esp + eax + 0xcc]
add ecx, dword [esp + eax + 0xc8]
add ecx, dword [esp + eax + 0xc4]
add esi, ecx
cmp eax, 0x30
jl 0x542590
mov ecx, dword [esp + 0x124]
test ecx, ecx
mov dword [esp + 0x98], esi
mov dword [esp + 0x10], edx
je 0x54267e
lea edx, [esp + 0xdc]
lea esi, [esp + 0x9c]
lea edi, [esp + 0xe0]
lea ebx, [esp + 0xa0]
lea eax, [ecx + 8]
sub edx, ecx
sub esi, ecx
sub edi, ecx
sub ebx, ecx
xor ecx, ecx
nop
mov ebp, dword [esp + ecx + 0xdc]
add ebp, dword [esp + ecx + 0x9c]
add ecx, 0x10
mov dword [eax - 8], ebp
mov ebp, dword [esp + ecx + 0x90]
add ebp, dword [esp + ecx + 0xd0]
add eax, 0x10
mov dword [eax - 0x14], ebp
mov ebp, dword [esi + eax - 0x10]
add ebp, dword [edx + eax - 0x10]
mov dword [eax - 0x10], ebp
mov ebp, dword [ebx + eax - 0x10]
add ebp, dword [edi + eax - 0x10]
cmp ecx, 0x40
mov dword [eax - 0xc], ebp
jl 0x542630
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x98]
mov eax, dword [esp + 0x128]
test eax, eax
je 0x5426f8
mov ecx, dword [esp + 0x18]
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x38]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x40]
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x48]
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 0x4c]
mov dword [eax + 0x34], ecx
mov ecx, dword [esp + 0x50]
mov dword [eax + 0x38], ecx
mov ecx, dword [esp + 0x54]
mov dword [eax + 0x3c], ecx
mov eax, dword [esp + 0x12c]
test eax, eax
je 0x542788
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
mov ecx, dword [esp + 0x5c]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x60]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x64]
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x6c]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 0x18], ecx
mov ecx, dword [esp + 0x74]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x78]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x7c]
mov dword [eax + 0x24], ecx
mov ecx, dword [esp + 0x80]
mov dword [eax + 0x28], ecx
mov ecx, dword [esp + 0x84]
mov dword [eax + 0x2c], ecx
mov ecx, dword [esp + 0x88]
mov dword [eax + 0x30], ecx
mov ecx, dword [esp + 0x8c]
mov dword [eax + 0x34], ecx
mov ecx, dword [esp + 0x90]
mov dword [eax + 0x38], ecx
mov ecx, dword [esp + 0x94]
mov dword [eax + 0x3c], ecx
mov eax, dword [esp + 0x10c]
mov ecx, dword [esp + 0xd8]
add ecx, eax
mov eax, dword [esp + 0x120]
add ecx, dword [esp + 0xcc]
pop edi
mov dword [eax + 0x18], esi
pop esi
mov dword [eax + 0xc], ecx
mov ecx, dword [esp + 0x110]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0xc]
pop ebp
mov dword [eax + 0x10], ecx
mov dword [eax + 0x1c], edx
pop ebx
add esp, 0x10c
ret 0x10