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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov esi, dword [edi + 0xc]
mov ecx, dword [edi + 0x44]
add esi, 0x38
mov edx, dword [edi + 0x48]
mov eax, dword [eax + 0x64]
mov dword [ebp - 0x20], eax
movsx ebx, word [esi + 2]
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], esi
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 [eax + ebx + 1], 0
mov eax, dword [esi + 8]
mov byte [eax + ebx + 2], 0
mov eax, dword [esi + 8]
mov byte [eax + ebx + 3], 0
add ebx, 4
mov ecx, dword [edi]
mov dword [ebp - 0xc], ebx
test dword [ecx + 4], 0x7fff0000
jne 0x5369fb
test dword [ecx + 8], 0x8000
je 0x536a92
lea eax, [ebp - 8]
push eax
push 0
push ebx
push 0
push 8
push dword [ebp - 0x20]
call fcn.00527250
add esp, 0x18
mov ecx, eax
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ecx
jne 0x536c97
push ebx
push ecx
push esi
push dword [edi + 0x14]
push dword [edi]
call fcn.00539a90
mov ecx, dword [edi]
add esp, 0x14
mov dword [ebp - 8], eax
mov edx, dword [ecx + 0x2e4]
test dl, 2
jne 0x536a63
mov edx, dword [ebp - 4]
mov eax, dword [edx + ebx*8 - 0x18]
sub eax, dword [edx + ebx*8 - 0x20]
add eax, 0x20
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
mov dword [edi + 0x3c], eax
mov edx, dword [ecx + 0x2e4]
mov ecx, dword [ebp - 4]
test dl, 0x10
jne 0x536a88
mov eax, dword [ecx + ebx*8 - 8]
sub eax, dword [ecx + ebx*8 - 0x10]
add eax, 0x20
and eax, 0xffffffc0
cdq
and edx, 0x3f
add eax, edx
sar eax, 6
mov dword [edi + 0xb0], eax
cmp dword [ebp - 8], 0
jne 0x536c97
mov eax, dword [edi + 0x10]
test al, 2
jne 0x536acd
push 0
push 0
lea eax, [edi + 0x78]
push esi
push eax
call fcn.0053e4b0
movzx eax, word [edi + 0x80]
lea eax, [eax*8 + 0x20]
push eax
push dword [edi + 0x88]
push dword [edi + 0x8c]
call fcn.0057a3d0
mov eax, dword [edi + 0x10]
add esp, 0x1c
mov esi, dword [esi + 4]
lea edx, [esi + ebx*8]
test al, 1
jne 0x536bf9
mov eax, dword [edi + 4]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ecx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
test dword [eax + 4], 0x7fff0000
jne 0x536b78
test dword [eax + 8], 0x8000
jne 0x536b78
cmp esi, edx
jae 0x536bf9
mov ebx, edx
nop
mov eax, dword [esi]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
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 - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
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 - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 4], eax
add esi, 8
cmp esi, ebx
jb 0x536b10
jmp 0x536bf6
mov ebx, dword [ebp - 4]
cmp esi, edx
jae 0x536bf6
mov edi, edx
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
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 - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, 0x20
sar eax, 6
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
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 - 0x28], eax
mov eax, dword [ebp - 0x28]
lea ebx, [ebx + 8]
add eax, 0x20
sar eax, 6
mov dword [esi + 4], eax
add esi, 8
cmp esi, edi
jb 0x536b81
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
mov eax, dword [edi]
mov edx, dword [edi + 0x10]
mov eax, dword [eax + 0x2e4]
test al, 2
je 0x536c0d
test dl, 2
je 0x536c3c
mov esi, dword [ebp - 0x1c]
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 + 0x2e4]
jmp 0x536c3f
mov esi, dword [ebp - 0x1c]
test al, 0x10
je 0x536c4a
and edx, 2
je 0x536c7b
jmp 0x536c4d
and edx, 2
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 0x536c94
add word [edi + 0x80], 4
push edx
push edi
call fcn.005351b0
add esp, 8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
push dword [ebp - 0x20]
call fcn.00527100
mov eax, dword [ebp - 8]
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret