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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], 0
mov esi, dword [edi + 0xc]
mov ecx, dword [edi + 0x44]
add esi, 0x38
mov edx, dword [edi + 0x48]
mov dword [ebp - 8], esi
movsx ebx, word [esi + 2]
mov dword [ebp - 0x1c], ebx
lea eax, [ebx*8]
mov dword [ebp - 4], eax
mov eax, dword [esi + 4]
mov ebx, dword [ebp - 4]
mov dword [ebx + eax], ecx
mov ecx, ebx
mov dword [ecx + eax + 4], edx
mov eax, dword [esi + 4]
mov ecx, dword [edi + 0x4c]
mov edx, dword [edi + 0x50]
mov dword [eax + ebx + 8], ecx
mov ecx, ebx
mov ebx, dword [ebp - 0x1c]
mov dword [eax + ecx + 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 eax, dword [edi]
test dword [eax + 4], 0x7fff0000
jne 0x5adc6c
test dword [eax + 8], 0x8000
jne 0x5adc6c
lea ecx, [ebx*8]
mov dword [ebp - 0x1c], ecx
test byte [edi + 0x10], 2
jne 0x5adb45
push 0
push 0
lea eax, [edi + 0x78]
push esi
push eax
call fcn.005b3610
movzx eax, word [edi + 0x80]
lea eax, [eax*8 + 0x20]
push eax
push dword [edi + 0x88]
push dword [edi + 0x8c]
call fcn.005ea470
add esp, 0x1c
mov esi, dword [esi + 4]
xor cl, cl
mov edx, dword [edi + 0x10]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
lea eax, [esi + ebx*8]
mov dword [ebp - 0x10], eax
test dl, 1
jne 0x5adb7d
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 cl, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
test cl, cl
je 0x5adbf1
cmp esi, eax
jae 0x5adbf1
mov edi, dword [ebp - 0x10]
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
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 - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
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, edi
jb 0x5adb88
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x10]
mov eax, dword [edi]
test byte [eax + 0x2c0], 2
je 0x5adcd5
and edx, 2
jne 0x5adcd8
mov esi, dword [ebp - 8]
test byte [eax + 0x2c0], 0x10
je 0x5adc19
test edx, edx
je 0x5adc52
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx*8 - 0x10]
mov eax, dword [eax + ebx*8 - 0xc]
mov ebx, dword [ebp - 0x1c]
mov dword [edi + 0xb4], ecx
mov dword [edi + 0xb8], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx - 8]
mov eax, dword [eax + ebx - 4]
mov dword [edi + 0xbc], ecx
mov dword [edi + 0xc0], eax
test edx, edx
jne 0x5add0c
add word [edi + 0x80], 4
push 0
push edi
call fcn.005ac3f0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push esi
push dword [edi + 0x14]
push eax
call fcn.005aeb30
mov edx, eax
add esp, 0x10
mov eax, dword [edi]
mov dword [ebp - 0xc], edx
test byte [eax + 0x2c0], 2
jne 0x5adca0
mov ecx, dword [esi + 4]
mov esi, dword [ebp - 4]
mov edx, dword [ecx + ebx*8 - 0x18]
sub edx, dword [ecx + esi]
mov esi, dword [ebp - 8]
mov dword [edi + 0x3c], edx
mov edx, dword [ebp - 0xc]
test byte [eax + 0x2c0], 0x10
lea ecx, [ebx*8]
mov dword [ebp - 0x1c], ecx
jne 0x5adcc4
mov eax, dword [esi + 4]
mov ecx, dword [eax + ecx - 8]
sub ecx, dword [eax + ebx*8 - 0x10]
mov dword [edi + 0xb0], ecx
test edx, edx
je 0x5adb0e
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
and edx, 2
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 4]
mov eax, dword [esi + 4]
mov ecx, dword [ecx + eax]
mov eax, dword [edi + eax + 4]
mov edi, dword [ebp + 8]
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
jmp 0x5adc0c
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret