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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov esi, dword [edi + 0xc]
mov ecx, dword [edi + 0x44]
add esi, 0x38
mov edx, dword [edi + 0x48]
mov dword [ebp - 0x14], esi
movsx ebx, word [esi + 2]
mov eax, dword [esi + 4]
mov dword [eax + ebx*8], ecx
mov dword [eax + ebx*8 + 4], edx
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0x4c]
mov edx, dword [edi + 0x50]
mov dword [eax + ebx*8 + 8], ecx
mov dword [eax + ebx*8 + 0xc], edx
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0xb4]
mov edx, dword [edi + 0xb8]
mov dword [eax + ebx*8 + 0x10], ecx
mov dword [eax + ebx*8 + 0x14], edx
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0xbc]
mov edx, dword [edi + 0xc0]
mov dword [eax + ebx*8 + 0x18], ecx
mov dword [eax + ebx*8 + 0x1c], edx
mov eax, dword [esi + 8]
mov byte [ebx + eax], 0
mov eax, dword [esi + 8]
mov byte [ebx + eax + 1], 0
mov eax, dword [esi + 8]
mov byte [ebx + eax + 2], 0
mov eax, dword [esi + 8]
mov byte [ebx + eax + 3], 0
add ebx, 4
mov eax, dword [edi]
test dword [eax + 4], 0x7fff0000
jne 0x5422f5
test dword [eax + 8], 0x8000
je 0x54234f
push ebx
push esi
push dword [edi + 0x14]
push eax
call fcn.005432e0
mov edx, eax
add esp, 0x10
mov eax, dword [edi]
mov dword [ebp - 4], edx
mov eax, dword [eax + 0x2c0]
test al, 2
jne 0x54232d
mov ecx, dword [esi + 4]
mov eax, dword [edi]
mov edx, dword [ecx + ebx*8 - 0x18]
sub edx, dword [ecx + ebx*8 - 0x20]
mov dword [edi + 0x3c], edx
mov eax, dword [eax + 0x2c0]
mov edx, dword [ebp - 4]
test al, 0x10
jne 0x542342
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx*8 - 8]
sub ecx, dword [eax + ebx*8 - 0x10]
mov dword [edi + 0xb0], ecx
test edx, edx
je 0x54234f
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [edi + 0x10]
test dl, 2
jne 0x54238b
push 0
push 0
lea eax, [edi + 0x78]
push esi
push eax
call fcn.00547da0
movzx eax, word [edi + 0x80]
lea eax, [eax*8 + 0x20]
push eax
push dword [edi + 0x88]
push dword [edi + 0x8c]
call fcn.00581a40
mov edx, dword [edi + 0x10]
add esp, 0x1c
mov esi, dword [esi + 4]
xor cl, cl
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
lea eax, [esi + ebx*8]
mov dword [ebp - 8], eax
test dl, 1
jne 0x5423c0
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ecx + 8]
mov cl, 1
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
test cl, cl
je 0x542439
cmp esi, eax
jae 0x542439
mov edi, dword [ebp - 8]
nop dword [eax + eax]
mov eax, dword [esi]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esi], eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
imul edx
mov ecx, edx
sar ecx, 0x1f
add ecx, 0x8000
add eax, ecx
adc edx, 0
shr eax, 0x10
shl edx, 0x10
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 4], eax
add esi, 8
cmp esi, edi
jb 0x5423d0
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x10]
mov eax, dword [edi]
mov eax, dword [eax + 0x2c0]
test al, 2
je 0x5424a1
and edx, 2
jne 0x5424a4
mov esi, dword [ebp - 0x14]
test al, 0x10
je 0x542455
test edx, edx
je 0x542487
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx*8 - 0x10]
mov eax, dword [eax + ebx*8 - 0xc]
mov dword [edi + 0xb4], ecx
mov dword [edi + 0xb8], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx*8 - 8]
mov eax, dword [eax + ebx*8 - 4]
mov dword [edi + 0xbc], ecx
mov dword [edi + 0xc0], eax
test edx, edx
jne 0x5424d6
add word [edi + 0x80], 4
push 0
push edi
call fcn.00540c10
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
and edx, 2
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx*8 - 0x20]
mov eax, dword [eax + ebx*8 - 0x1c]
mov dword [edi + 0x48], eax
mov dword [edi + 0x44], ecx
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx*8 - 0x18]
mov eax, dword [eax + ebx*8 - 0x14]
mov dword [edi + 0x50], eax
mov eax, dword [edi]
mov dword [edi + 0x4c], ecx
mov eax, dword [eax + 0x2c0]
jmp 0x54244d
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret