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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov ebx, dword [ecx + 0x1c]
test ebx, ebx
setne al
mov dword [esp + 0x40], eax
je 0x416874
mov edi, ecx
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x50], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
xorps xmm0, xmm0
movups xmmword [esp + 0x2c], xmm0
movups xmmword [esp + 0x1c], xmm0
movups xmmword [esp + 0xc], xmm0
lea eax, [esp + 0xc]
mov ecx, esp
push eax
call fcn.00416f50
mov eax, dword [esp + 0x28]
test eax, eax
je 0x416809
mov dword [esp + 0x2c], eax
push eax
call fcn.004203b0
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41681e
mov dword [esp + 0x20], eax
push eax
call fcn.004203b0
add esp, 4
mov eax, dword [esp + 4]
mov dword [eax - 0x34], 0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x68]
mov dword [eax - 0x30], ecx
mov eax, dword [esp + 4]
mov dword [eax - 0x2c], ecx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x6c]
mov dword [eax - 0x28], ecx
mov ecx, dword [esp + 4]
mov eax, dword [edi + 0x10]
mov edx, dword [ecx - 0x24]
mov esi, dword [ecx - 0x20]
sub esi, edx
sar esi, 2
imul ebp, esi, 0xaaaaaaab
mov esi, eax
sub esi, ebp
jbe 0x41687b
add ecx, 0xffffffdc
lea eax, [esp + 0x48]
push eax
push esi
call fcn.00417130
jmp 0x416886
xor ebx, ebx
jmp 0x416b2f
jae 0x416886
lea eax, [eax + eax*2]
lea eax, [edx + eax*4]
mov dword [ecx - 0x20], eax
mov ecx, dword [esp + 4]
mov eax, dword [edi + 0x14]
mov edx, dword [ecx - 0x18]
mov edi, dword [ecx - 0x14]
sub edi, edx
sar edi, 3
mov esi, eax
sub esi, edi
jbe 0x4168a9
add ecx, 0xffffffe8
push esi
call fcn.00417340
jmp 0x4168b1
jae 0x4168b1
lea eax, [edx + eax*8]
mov dword [ecx - 0x14], eax
mov eax, dword [esp + 4]
mov dword [eax - 0xc], ebx
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x74]
mov dword [eax - 8], ecx
mov eax, dword [esp + 4]
movzx ecx, byte [esp + 0x78]
mov byte [eax - 4], cl
mov edi, dword [esp + 0x6c]
sub edi, dword [esp + 0x68]
mov ebp, 1
xorps xmm0, xmm0
mov dword [esp + 0x44], edi
jmp 0x4168fe
add esi, 0xffffffcc
mov dword [esp + 4], esi
nop dword [eax]
mov esi, dword [esp]
inc ebp
cmp esi, dword [esp + 4]
je 0x416ad2
test ebp, 0xfff
jne 0x416913
mov eax, ebp
shr eax, 0xc
cmp eax, edi
jge 0x416bb8
mov esi, dword [esp + 4]
lea ebx, [esi - 0x34]
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x41692a
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
xorps xmm0, xmm0
mov eax, dword [ebx]
mov ecx, 0x3e8
add eax, ecx
cmp eax, 9
ja case.0x41693c.1
jmp dword [eax*4 + 0x416bc4]
mov eax, dword [esi - 0x2c]
mov ecx, dword [esp + 0x74]
test cl, 0x20
je 0x416955
cmp eax, dword [esp + 0x68]
je 0x41696d
test dword [esp + 0x74], 0x1000
je 0x416b3b
cmp eax, dword [esp + 0x6c]
je 0x416b3b
mov esi, dword [esp + 4]
mov eax, dword [esi - 0x18]
test eax, eax
je 0x416984
mov dword [esi - 0x14], eax
push eax
call fcn.004203b0
add esp, 4
mov eax, dword [esi - 0x24]
test eax, eax
je 0x416997
mov dword [esi - 0x20], eax
push eax
call fcn.004203b0
add esp, 4
add esi, 0xffffffcc
mov dword [esp + 4], esi
xorps xmm0, xmm0
jmp case.0x41693c.5
mov esi, dword [esp + 4]
mov eax, dword [esi - 0x18]
test eax, eax
je 0x4169c0
mov dword [esi - 0x14], eax
push eax
call fcn.004203b0
xorps xmm0, xmm0
add esp, 4
mov eax, dword [esi - 0x24]
test eax, eax
je 0x4168e5
mov dword [esi - 0x20], eax
push eax
call fcn.004203b0
xorps xmm0, xmm0
add esp, 4
jmp 0x4168e5
movups xmmword [esp + 0x2c], xmm0
movups xmmword [esp + 0x1c], xmm0
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 0x3c], 0
lea edi, [esp + 0xc]
mov ecx, edi
push ebx
call fcn.00416e20
mov ecx, dword [esi - 0xc]
mov eax, dword [ecx]
push ebx
push 1
call dword [eax + 0xc]
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
push edi
push 0
call dword [eax + 0xc]
mov eax, dword [esp + 4]
cmp eax, dword [esp + 8]
jae 0x416a94
movups xmm0, xmmword [esp + 0xc]
movups xmmword [eax], xmm0
xorps xmm0, xmm0
movups xmmword [eax + 0x10], xmm0
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x10], ecx
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x18], ecx
mov dword [esp + 0x1c], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x1c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0x20], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax + 0x24], ecx
movups xmmword [esp + 0x24], xmm0
lea edx, [esp + 0x34]
movzx ecx, byte [edx + 8]
mov byte [eax + 0x30], cl
movsd xmm0, qword [edx]
movsd qword [eax + 0x28], xmm0
add eax, 0x34
mov dword [esp + 4], eax
jmp 0x416ab1
mov ecx, esp
push edi
call fcn.00416f50
mov eax, dword [esp + 0x28]
test eax, eax
je 0x416ab1
mov dword [esp + 0x2c], eax
push eax
call fcn.004203b0
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
mov edi, dword [esp + 0x44]
je 0x416aca
mov dword [esp + 0x20], eax
push eax
call fcn.004203b0
add esp, 4
xorps xmm0, xmm0
jmp case.0x41693c.5
xor ebx, ebx
test esi, esi
je 0x416b2f
mov edi, dword [esp + 4]
mov eax, esi
cmp edi, esi
jne 0x416af7
jmp 0x416b22
add edi, 0xffffffcc
cmp edi, esi
je 0x416b1f
mov eax, dword [edi - 0x18]
test eax, eax
je 0x416b0a
mov dword [edi - 0x14], eax
push eax
call fcn.004203b0
add esp, 4
mov eax, dword [edi - 0x24]
test eax, eax
je 0x416af0
mov dword [edi - 0x20], eax
push eax
call fcn.004203b0
add esp, 4
jmp 0x416af0
mov eax, dword [esp]
mov dword [esp + 4], esi
push eax
call fcn.004203b0
add esp, 4
mov eax, ebx
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov ebp, dword [esp + 0x70]
mov eax, dword [ebp]
mov ecx, dword [esp + 0x68]
mov dword [eax], ecx
mov eax, dword [esi - 0x2c]
mov ecx, dword [ebp]
mov dword [ecx + 4], eax
mov eax, dword [ebp]
mov byte [eax + 8], 1
mov eax, dword [esi - 0x24]
cmp dword [esi - 0x20], eax
je 0x416ba4
xor ecx, ecx
xor edx, edx
nop word cs:[eax + eax]
inc edx
mov edi, dword [ebp]
mov ebx, dword [eax + ecx]
mov dword [edi + ecx + 0xc], ebx
mov ebx, dword [eax + ecx + 4]
mov dword [edi + ecx + 0x10], ebx
movzx eax, byte [eax + ecx + 8]
mov byte [edi + ecx + 0x14], al
mov eax, dword [esi - 0x24]
mov edi, dword [esi - 0x20]
sub edi, eax
sar edi, 2
imul edi, edi, 0xaaaaaaab
add ecx, 0xc
cmp edx, edi
jb 0x416b70
mov esi, dword [esp]
mov ebx, dword [esp + 0x40]
test esi, esi
jne 0x416ad8
jmp 0x416b2f
call fcn.00416e10
call fcn.00416f40
nop
inc ebx
imul eax, dword [ecx], case.0x41693c.1
mov ebp, 0xbd00416b
imul eax, dword [ecx], -67
imul eax, dword [ecx], 0xfffffff0
push 0x68f00041
inc ecx
add byte [esi - 0x20ffbe97], ah
imul eax, dword [ecx], case.0x41693c.5
int3