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

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x5c
mov ebp, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov esi, dword [esp + 0x78]
mov ecx, dword [ebp + 0x58]
test ecx, ecx
je 0x615aff90
mov eax, dword [ecx]
call dword [eax + 0x14]
xor edx, edx
test eax, eax
cmovns edx, eax
setle cl
mov dword [esp + 0x28], edx
mov eax, edi
lea edx, [ebp + 0x24]
mov dword [ebx], 0xffffffff
or eax, esi
mov dword [ebx + 4], 0xffffffff
setne al
mov dword [ebx + 8], 0
and eax, ecx
mov ecx, edx
mov dword [esp + 0x2c], edx
mov byte [esp + 0x24], al
call fcn.61547260
cmp al, 1
jne 0x615afecd
cmp byte [esp + 0x24], 0
je 0x615afee0
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
cmp dword [esp + 0x7c], 1
jne 0x615affc0
mov eax, edi
or eax, esi
jne 0x615affc0
cmp byte [ebp + 0x46], 0
jne 0x615affa8
mov eax, dword [ebp + 0x30]
cmp byte [ebp + 0x45], 0
mov dword [esp + 0x3c], eax
je 0x615b0098
mov eax, dword [ebp + 0x38]
mov ecx, ebp
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.615aef80
mov edi, eax
sub esp, 4
mov esi, eax
sar edi, 0x1f
cmp byte [ebp + 0x46], 0
je 0x615aff42
mov esi, dword [ebp + 0x14]
sub esi, dword [ebp + 0x10]
sar esi, 1
mov edi, esi
sar edi, 0x1f
mov dword [esp + 8], 1
mov ecx, dword [esp + 0x2c]
mov dword [esp], 0
mov dword [esp + 4], 0
call fcn.615a69c0
mov ecx, eax
sub esp, 0xc
and ecx, edx
cmp ecx, 0xffffffff
je 0x615afecd
add eax, esi
mov dword [ebx], eax
mov eax, dword [esp + 0x3c]
adc edx, edi
mov dword [ebx + 4], edx
mov dword [ebx + 8], eax
add esp, 0x5c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret 0x14
mov dword [esp + 0x28], 0
mov ecx, 1
jmp 0x615afe93
mov ecx, dword [ebp + 0x58]
mov eax, dword [ecx]
call dword [eax + 0x18]
test al, al
jne 0x615b0078
lea esi, [esi]
nop
mov eax, dword [ebp + 0x30]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
cdq
mov eax, dword [esp + 0x28]
mov ecx, edx
imul eax, esi
imul ecx, edi
add ecx, eax
mov eax, dword [esp + 0x28]
mul edi
mov edi, edx
mov esi, eax
movzx eax, byte [ebp + 0x45]
add edi, ecx
cmp byte [ebp + 0x54], 0
je 0x615b0017
mov edx, dword [ebp + 4]
xor ecx, ecx
cmp dword [ebp + 8], edx
mov byte [ebp + 0x54], 0
mov edx, dword [ebp + 0x4c]
setne cl
lea edx, [edx + ecx*2]
mov ecx, dword [ebp + 0x3c]
mov dword [ebp + 0x4c], edx
mov dword [ebp + 8], edx
mov edx, dword [ebp + 0x50]
mov dword [ebp + 4], ecx
mov dword [ebp + 0xc], edx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], ecx
test al, al
je 0x615b0032
cmp dword [esp + 0x7c], 1
je 0x615b00a1
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], esi
lea ecx, [esp + 0x40]
mov dword [esp + 8], edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], ebp
mov dword [esp + 0xc], eax
call fcn.615afdb0
sub esp, 0x14
mov eax, dword [esp + 0x40]
mov dword [ebx], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x48]
mov dword [ebx + 8], eax
jmp 0x615afecd
mov eax, dword [ebp + 0x30]
cmp byte [ebp + 0x45], 0
mov dword [esp + 0x3c], eax
jne 0x615aff10
xor esi, esi
xor edi, edi
jmp 0x615aff2f
xor esi, esi
xor edi, edi
jmp 0x615aff42
mov eax, dword [ebp + 0x38]
mov ecx, ebp
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.615aef80
push edx
cdq
add esi, eax
mov eax, dword [esp + 0x3c]
adc edi, edx
mov dword [esp + 0x24], eax
jmp 0x615b0032