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

Disassembly:
sub esp, 0x94
mov eax, edx
mov dword [esp + 0x28], ecx
push ebx
mov dword [esp + 0x24], eax
mov ebx, 1
add eax, 0x1f
shr eax, 5
push ebp
push esi
cmp eax, ebx
mov esi, ebx
push edi
cmova esi, eax
mov ecx, esi
call fcn.004155e0
lea edx, [esi + esi]
mov ecx, esi
cmp edx, esi
mov ebp, eax
lea eax, [esi + esi*2]
mov dword [esp + 0x44], ebp
cmovb ecx, edx
lea edi, [ecx + ecx*2]
add edi, edi
lea ecx, [edi + eax*2]
call fcn.004155e0
mov esi, eax
mov dword [esp + 0x34], esi
mov edx, dword [esi]
cmp edi, edx
mov eax, dword [esi + 4]
mov ecx, edx
mov dword [esp + 0x20], eax
mov eax, edx
cmovbe eax, edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x28], eax
jbe 0x416928
mov edi, edx
mov eax, edx
sub eax, edi
cmp edx, eax
jbe 0x416938
mov edx, ecx
sub edx, edi
mov dword [esp + 0x48], edx
mov eax, dword [esp + 0x20]
mov dword [esp + 0x88], edx
lea edi, [eax + edi*4]
mov eax, dword [ebp + 4]
mov dword [esp + 0x2c], edi
mov dword [eax], ebx
mov eax, ebx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x30], eax
jbe 0x416cce
nop
lea esi, [eax + 0x1f]
mov ebx, edi
lea eax, [eax*2 + 0x1f]
shr esi, 5
shr eax, 5
mov dword [esp + 0x40], eax
cmp esi, edx
jbe 0x416988
mov ecx, edx
mov dword [esp + 0x1c], edx
mov ebp, edx
mov dword [esp + 0x10], ecx
jmp 0x416994
mov ebp, esi
mov dword [esp + 0x10], esi
mov ecx, esi
mov dword [esp + 0x1c], esi
mov eax, edx
mov dword [esp + 0x94], ebx
sub eax, ecx
mov dword [esp + 0x90], ebp
cmp edx, eax
mov ecx, edx
cmova ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], ecx
lea eax, [edi + eax*4]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
mov ebx, dword [eax]
cmp ebp, ebx
cmovb ebx, ebp
lea edi, [ebx*4]
push edi
push dword [eax + 4]
mov eax, dword [esp + 0x34]
push eax
call sub.VCRUNTIME140.dll_memmove
sub ebp, ebx
add esp, 0xc
mov ebx, dword [esp + 0x2c]
shl ebp, 2
add edi, ebx
je 0x416a08
test ebp, ebp
je 0x416a08
push ebp
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push ebp
push edi
call eax
add esp, 8
mov ecx, dword [esp + 0x18]
mov ebp, 1
mov edx, dword [esp + 0x18]
and ecx, 0x1f
shr edx, 5
shl ebp, cl
mov eax, edx
mov dword [esp + 0x3c], edx
dec ebp
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x6c], ecx
mov ecx, ebp
cmp eax, edx
jae 0x416a3c
and dword [ebx + eax*4], ecx
inc eax
xor ecx, ecx
cmp eax, edx
jb 0x416a32
mov edx, dword [esp + 0x44]
mov ecx, esi
cmp esi, dword [edx]
mov eax, dword [edx + 4]
cmova ecx, dword [edx]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x40]
cmp eax, ecx
jbe 0x416a68
mov edx, ecx
mov dword [esp + 0x24], ecx
mov edi, ecx
jmp 0x416a70
mov dword [esp + 0x24], eax
mov edx, eax
mov edi, eax
push dword [esp + 0x20]
mov ebx, ecx
mov dword [esp + 0x74], edx
push dword [esp + 0x2c]
mov eax, ecx
lea edx, [esp + 0x98]
sub ebx, edi
cmp ecx, ebx
mov ecx, dword [esp + 0x1c]
cmovbe ebx, eax
mov dword [esp + 0x54], ebx
lea eax, [ecx + edi*4]
mov dword [esp + 0x18], eax
mov eax, ecx
mov dword [esp + 0x7c], eax
lea ecx, [esp + 0x78]
lea eax, [esp + 0x6c]
push eax
call fcn.00416110
add esp, 0xc
cmp esi, ebx
jbe 0x416abe
mov edx, ebx
mov ecx, ebx
jmp 0x416aca
mov eax, dword [esp + 0x10]
mov edx, esi
mov dword [esp + 0x10], eax
mov ecx, esi
push dword [esp + 0x18]
mov eax, ebx
mov dword [esp + 0x60], edx
sub eax, ecx
lea edx, [esp + 0x74]
cmp ebx, eax
cmova ebx, eax
mov eax, dword [esp + 0x18]
add ecx, edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x50], ecx
lea edi, [eax + ecx*4]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x60]
mov dword [esp + 0x64], eax
call fcn.00416690
add esp, 4
cmp esi, ebx
jbe 0x416b16
mov ecx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ecx
mov edx, ebx
jmp 0x416b22
mov ecx, esi
mov dword [esp + 0x1c], esi
mov edx, esi
mov dword [esp + 0x10], esi
push dword [esp + 0x18]
mov eax, ebx
mov dword [esp + 0x7c], ecx
sub eax, edx
lea ecx, [esp + 0x7c]
cmp ebx, eax
cmova ebx, eax
mov eax, dword [esp + 0x50]
add eax, edx
mov edx, dword [esp + 0x18]
lea eax, [edx + eax*4]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x50], eax
mov eax, edi
mov dword [esp + 0x80], eax
call fcn.00416690
mov eax, dword [esp + 0x40]
add esp, 4
mov ecx, ebp
cmp eax, dword [esp + 0x1c]
jae 0x416b7a
mov edx, dword [esp + 0x10]
nop dword [eax]
and dword [edi + eax*4], ecx
inc eax
xor ecx, ecx
cmp eax, edx
jb 0x416b70
push dword [esp + 0x20]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x68]
cmp esi, dword [esp + 0x28]
lea ecx, [esp + 0x58]
push dword [esp + 0x2c]
mov dword [esp + 0x60], eax
mov edi, esi
cmova edi, dword [esp + 0x2c]
lea eax, [esp + 0x80]
push eax
mov dword [esp + 0x60], edi
call fcn.00416110
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x68]
add esp, 0xc
mov edx, edi
push 0
push 0
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x64]
push eax
call fcn.00415c80
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x68]
add esp, 0x14
mov dword [esp + 0x88], 0
mov edx, edi
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00415c80
mov edi, dword [esp + 0x60]
lea eax, [esp + 0x68]
add esp, 0x14
mov dword [esp + 0x84], edi
cmp esi, ebx
lea edx, [esp + 0x64]
lea ecx, [esp + 0x80]
cmova esi, ebx
push dword [esp + 0x20]
mov dword [esp + 0x84], esi
push dword [esp + 0x2c]
push eax
call fcn.00416110
mov ebx, dword [esp + 0x48]
add esp, 0xc
mov eax, ebx
cmp eax, esi
jae 0x416c4a
nop dword [eax]
and dword [edi + eax*4], ebp
inc eax
xor ebp, ebp
cmp eax, esi
jb 0x416c40
push dword [esp + 0x6c]
lea edx, [esp + 0x84]
lea ecx, [esp + 0x60]
call fcn.004165b0
mov ebp, dword [esp + 0x48]
add esp, 4
mov edx, dword [esp + 0x40]
sub edx, ebx
mov eax, dword [ebp]
cmp ebx, eax
push 0
cmova ebx, eax
sub eax, ebx
cmp edx, eax
push 0
cmova edx, eax
mov eax, dword [ebp + 4]
push 0xffffffffffffffff
mov dword [esp + 0xa4], edx
lea ecx, [eax + ebx*4]
lea eax, [esp + 0x68]
mov dword [esp + 0xa8], ecx
push eax
lea eax, [esp + 0xa8]
push eax
call fcn.00415c80
mov eax, dword [esp + 0x2c]
add esp, 0x14
mov edx, dword [esp + 0x48]
add eax, eax
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x30]
jb 0x416960
mov esi, dword [esp + 0x34]
mov ebx, 1
mov eax, dword [esp + 0x30]
mov edx, eax
and eax, 0x1f
shr edx, 5
mov ecx, eax
shl ebx, cl
dec ebx
cmp edx, dword [ebp]
jae 0x416cf2
mov eax, dword [ebp + 4]
and dword [eax + edx*4], ebx
inc edx
xor ebx, ebx
cmp edx, dword [ebp]
jb 0x416ce4
mov edi, dword [esi + 4]
test edi, edi
je 0x416d1e
mov esi, dword [esi]
shl esi, 2
test esi, esi
je 0x416d1a
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
mov eax, dword [fcn.0040ae20]
add esp, 0xc
push esi
push edi
call eax
add esp, 8
mov esi, dword [esp + 0x34]
mov eax, dword [fcn.0040ae20]
xorps xmm0, xmm0
push 8
push esi
movq qword [esi], xmm0
call eax
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret