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

Disassembly:
sub esp, 0x68
push ebx
push ebp
push esi
mov esi, dword [esp + 0x78]
mov ebp, edx
push edi
mov edi, ecx
mov dword [esp + 0x20], edi
mov ebx, dword [esi]
cmp dword [ebp], ebx
mov eax, dword [edi]
cmova ebx, dword [ebp]
mov ecx, dword [edi + 4]
cmp eax, ebx
mov dword [esp + 0x18], ecx
cmovb ebx, eax
shl eax, 2
mov dword [esp + 0x1c], eax
test ecx, ecx
je 0x416167
test eax, eax
je 0x416167
push eax
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call eax
add esp, 8
cmp ebx, 0x18
jb 0x41645d
mov ecx, dword [ebp]
test ecx, ecx
je 0x41645d
mov eax, dword [esi]
mov dword [esp + 0x18], eax
test eax, eax
je 0x41645d
mov edi, ebx
mov edx, ebx
shr edi, 1
sub edx, edi
cmp edx, ecx
mov dword [esp + 0x7c], edx
mov eax, edx
mov edx, dword [ebp + 4]
cmova eax, ecx
mov ebp, dword [esi]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x7c]
cmp eax, ebp
mov esi, dword [esi + 4]
cmova eax, ebp
mov dword [esp + 0x3c], edx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x7c]
cmp eax, ecx
mov ebp, dword [esp + 0x20]
cmova eax, ecx
mov dword [esp + 0x4c], esi
sub ecx, eax
mov dword [esp + 0x1c], ecx
mov ecx, edi
cmp edi, dword [esp + 0x1c]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x7c]
cmova ecx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, edx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x18]
cmp edx, ecx
cmova eax, ecx
sub ecx, eax
cmp edi, ecx
cmova edi, ecx
lea eax, [esi + eax*4]
mov esi, dword [ebp]
lea ecx, [edx + edx]
mov edx, dword [ebp + 4]
cmp ecx, esi
mov dword [esp + 0x44], eax
mov eax, esi
cmovbe eax, ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x7c]
cmp ecx, esi
mov dword [esp + 0x60], eax
mov eax, esi
cmova ecx, esi
mov dword [esp + 0x40], edi
sub eax, ecx
mov dword [esp + 0x64], edx
cmp esi, eax
mov edi, esi
cmova edi, eax
lea eax, [edx + ecx*4]
mov ecx, dword [esp + 0x14]
cmp ecx, esi
mov dword [esp + 0x1c], eax
cmova ecx, esi
mov dword [esp + 0x5c], eax
mov eax, esi
mov dword [esp + 0x18], edi
sub eax, ecx
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x84]
cmp esi, eax
push edi
cmova esi, eax
lea eax, [edx + ecx*4]
mov dword [esp + 0x6c], esi
lea edx, [esp + 0x3c]
mov esi, dword [esp + 0x84]
lea ecx, [esp + 0x64]
mov dword [esp + 0x70], eax
lea eax, [esp + 0x4c]
push esi
push eax
call fcn.00416110
add esp, 0xc
lea eax, [esp + 0x40]
lea edx, [esp + 0x30]
lea ecx, [esp + 0x68]
push edi
push esi
push eax
call fcn.00416110
lea eax, [ebx + ebx]
add esp, 0xc
lea ecx, [esp + 0x80]
cmp dword [ebp], eax
jae 0x41634e
mov ebp, dword [esp + 0x18]
cmp ebx, ebp
mov edx, ebp
cmovb edx, ebx
call fcn.00415c40
mov edi, dword [esp + 0x84]
lea ecx, [esp + 0x20]
mov esi, dword [esp + 0x80]
push edi
mov dword [esp + 0x24], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x3c]
push esi
push eax
call fcn.00416110
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
add esp, 0xc
mov edx, ebp
push 0
push 0
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00415c80
add esp, 0x14
lea eax, [esp + 0x48]
lea edx, [esp + 0x30]
lea ecx, [esp + 0x20]
push edi
push esi
push eax
call fcn.00416110
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x2c]
add esp, 0xc
mov edx, ebp
push 0
push 0
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00415c80
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov esi, dword [esp + 0x7c]
lea edx, [esi + 1]
call fcn.00415c40
mov edi, edx
lea ecx, [esp + 0x80]
mov ebx, eax
mov dword [esp + 0x74], edi
lea edx, [esi + 1]
mov dword [esp + 0x70], ebx
call fcn.00415c40
push 0
push 0
mov dword [esp + 0x58], eax
mov ecx, edi
push 0xffffffffffffffff
lea eax, [esp + 0x3c]
mov dword [esp + 0x60], edx
push eax
lea eax, [esp + 0x48]
mov edx, ebx
push eax
call fcn.00415c80
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x54]
mov ecx, dword [esp + 0x68]
add esp, 0x14
push 0
push 0
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00415c80
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x94]
add esp, 0x14
inc edx
call fcn.00415c40
push dword [esp + 0x84]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
push dword [esp + 0x84]
lea eax, [esp + 0x58]
mov dword [esp + 0x34], edx
push eax
lea edx, [esp + 0x7c]
call fcn.00416110
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x6c]
mov ecx, dword [esp + 0x38]
add esp, 0xc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00415c80
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x7c]
mov ecx, dword [esp + 0x40]
add esp, 0x14
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x38]
push eax
call fcn.00415c80
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x30]
add esp, 0x14
push 0
push 0
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x68]
push eax
call fcn.00415c80
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
mov edx, dword [ebp + 4]
mov eax, dword [ebp]
mov ecx, dword [esi]
mov dword [esp + 0x1c], edx
lea eax, [edx + eax*4]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 4]
lea ebp, [eax + ecx*4]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [esp + 0x18], ecx
lea ebx, [ecx + eax*4]
cmp edx, dword [esp + 0x14]
jae 0x4164ff
cmp ecx, ebx
jae 0x4164ff
mov esi, dword [esi + 4]
xor edi, edi
mov edx, dword [edx]
mov dword [esp + 0x20], edx
cmp esi, ebp
jae 0x4164d0
nop dword [eax + eax]
cmp ecx, ebx
jae 0x4164df
cmp esi, ebp
jae 0x4164ac
mov eax, dword [esi]
jmp 0x4164ae
xor eax, eax
mul edx
add eax, dword [ecx]
adc edx, 0
add eax, edi
mov dword [ecx], eax
adc edx, 0
add esi, 4
add ecx, 4
mov edi, edx
mov edx, dword [esp + 0x20]
cmp esi, ebp
jb 0x4164a0
cmp ecx, ebx
jae 0x4164df
xor eax, eax
add dword [ecx], edi
adc eax, eax
add ecx, 4
mov edi, eax
cmp ecx, ebx
jb 0x4164d0
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add edx, 4
mov esi, dword [esp + 0x7c]
add ecx, 4
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
cmp edx, dword [esp + 0x14]
jb 0x416488
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret