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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0xbc
mov dword [esp + 0x50], eax
mov eax, dword [ecx]
mov dword [esp + 0x4c], edx
mov esi, dword [esp + 0xd0]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x58], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xe8]
test eax, eax
jne 0x4166c0
cmp dword [esp + 0xd8], 2
ja 0x416800
mov ebx, 0xffffffba
add esp, 0xbc
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edx + 4]
mov edx, dword [edx]
mov dword [esp + 0x44], eax
sub eax, edx
sar eax, 3
test eax, eax
je 0x416698
mov ebp, edx
jmp 0x416718
mov edx, dword [ecx + 4]
mov dword [ecx + 8], edx
mov edx, dword [ecx]
mov dword [ecx + 4], edx
mov edx, eax
sub edx, 3
cmp edi, 2
mov dword [ecx], edx
jbe 0x416e06
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x3c]
mov dword [esi + 8], edx
mov edx, dword [esi]
sub eax, 3
mov dword [esi], eax
mov dword [esi + 4], edx
add ebp, 8
cmp ebp, dword [esp + 0x44]
je 0x416698
xor eax, eax
cmp word [ebp + 4], 0
sete al
mov ebx, eax
mov eax, dword [ebp]
mov dword [esp + 0x40], ebx
lea edi, [eax - 1]
mov dword [esp + 0x3c], eax
cmp edi, 2
ja 0x4166e0
lea edx, [ebx + edi]
cmp edx, 3
je 0x4167b0
mov eax, dword [ecx + edx*4]
mov ebx, dword [esi + edx*4]
mov dword [esp + 0x48], eax
cmp ebx, dword [esp + 0x48]
je 0x4167a2
lea eax, [ebx + 3]
add ebx, 2
cmp ebx, 2
mov dword [ebp], eax
ja 0x4166e0
add ebx, dword [esp + 0x40]
test ebx, ebx
je 0x41677f
cmp ebx, 3
je 0x4167d0
cmp ebx, 1
mov edi, dword [ecx + ebx*4]
je 0x4167e0
mov eax, dword [ecx]
mov ebx, dword [ecx + 4]
mov dword [ecx + 8], ebx
mov dword [ecx + 4], eax
mov dword [ecx], edi
test edx, edx
je 0x41670f
cmp edx, 3
je 0x4167c0
cmp edx, 1
mov ebx, dword [esi + edx*4]
je 0x4167f0
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esi + 8], edx
mov dword [esi + 4], eax
mov dword [esi], ebx
jmp 0x41670f
mov ebx, edx
jmp 0x416761
mov eax, dword [ecx]
sub eax, 1
mov dword [esp + 0x48], eax
mov eax, dword [esi]
lea ebx, [eax - 1]
jmp 0x416749
mov eax, dword [esi]
lea ebx, [eax - 1]
jmp 0x416792
mov eax, dword [ecx]
lea edi, [eax - 1]
jmp 0x416774
mov ebx, dword [ecx + 8]
mov eax, dword [ecx]
jmp 0x416777
mov edx, dword [esi + 8]
mov eax, dword [esi]
jmp 0x416795
mov eax, dword [esp + 0x50]
mov edi, dword [eax + 8]
mov esi, dword [eax + 0xa8]
mov dword [esp + 0x68], edi
mov edi, dword [eax + 0x8e0]
mov dword [esp + 0x78], esi
mov esi, dword [esp + 0x4c]
mov edx, edi
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0xd8]
sub edi, 3
mov dword [esp + 0x3c], edi
mov edi, dword [esp + 0xd4]
add edi, 3
mov dword [esp + 0x44], edi
mov edi, dword [eax + 0x814]
mov dword [esp + 0x48], edi
mov edi, dword [eax + 0x810]
mov eax, dword [eax + 0xc0]
mov dword [esp + 0x60], edi
mov edi, dword [esi]
mov dword [esp + 0x40], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x7c], edi
sub eax, edi
sar eax, 3
mov edi, eax
mov eax, esi
mov esi, dword [esi + 0x18]
mov ebx, dword [eax + 8]
mov dword [esp + 0x80], esi
mov esi, dword [eax + 0x10]
mov dword [esp + 0x84], esi
mov esi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x88], esi
mov esi, edx
sub eax, ebx
add esi, 0xd4
test edi, edi
mov dword [esp + 0x64], esi
mov dword [esp + 0x6c], eax
mov esi, eax
mov eax, 1
je 0x4168be
xor edx, edx
mov eax, esi
div edi
cmp eax, 0x13
seta al
mov esi, dword [esp + 0x50]
xor edx, edx
movzx eax, al
mov esi, dword [esi + 0xe4]
cmp esi, 1
je 0x4168e9
cmp esi, 2
mov edx, 1
je 0x4168e9
xor edx, edx
cmp dword [esp + 0x40], 1
je 0x416a4d
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0xc], edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x4c]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x24], 0x2204
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call fcn.00420620
cmp eax, 0xffffff88
ja 0x416a40
mov ecx, ebx
mov edx, 1
mov ebx, 0xffffffba
sub ecx, eax
cmp ecx, 3
jg 0x416a63
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0xe0]
jb 0x4166ab
test dl, dl
je 0x4166ab
mov edx, dword [ebp + 0x29c]
test edx, edx
je 0x416cdb
mov eax, dword [ebp + 0x28c]
test eax, eax
jne 0x416c10
mov eax, dword [esp + 0xe0]
lea ebx, [eax + 3]
cmp dword [esp + 0xd8], ebx
jb 0x4166a6
mov edi, eax
mov eax, dword [esp + 0xe4]
lea eax, [eax + edi*8]
mov edi, dword [esp + 0xd4]
mov word [edi], ax
shr eax, 0x10
mov byte [edi + 2], al
mov eax, dword [esp + 0xe0]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xdc]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
cmp ebx, 0xffffff88
ja 0x4166ab
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x54]
mov dword [eax], edi
mov edi, dword [esp + 0x58]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x5c]
mov dword [eax + 8], edi
mov eax, dword [ebp + 0x810]
cmp dword [eax + 0x11dc], 2
jne 0x4166ab
mov dword [eax + 0x11dc], 1
jmp 0x4166ab
cmp eax, 0xffffffba
mov ebx, eax
sete dl
jmp 0x41696d
mov esi, dword [esp + 0x50]
xor edx, edx
mov ebp, dword [esi + 0xbc]
test ebp, ebp
setne dl
jmp 0x4168e9
mov ecx, dword [esp + 0x48]
add eax, dword [esp + 0x44]
add ecx, 0x408
cmp edi, 0x7f
mov dword [esp + 0x4c], ecx
ja 0x416c36
lea ecx, [eax + 1]
test edi, edi
mov dword [esp + 0x50], ecx
mov ecx, edi
mov byte [eax], cl
jne 0x416c58
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x48]
lea esi, [eax + 0x408]
mov eax, dword [eax + 0x408]
mov dword [ecx + 0x408], eax
mov eax, dword [esi + 0xddc]
mov edi, dword [esp + 0x4c]
mov dword [edi + 0xddc], eax
mov eax, ecx
add eax, 0x40c
and eax, 0xfffffffc
sub edi, eax
lea ecx, [edi + 0xde0]
sub esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 0x50]
sub ebx, dword [esp + 0x44]
test ebx, ebx
je 0x416986
cmp ebx, 0xffffffba
jne 0x416afc
mov eax, dword [esp + 0x3c]
cmp eax, dword [esp + 0xe0]
jae 0x416986
cmp ebx, 0xffffff88
ja 0x4166ab
mov eax, dword [ebp + 0xc0]
mov edx, dword [esp + 0xe0]
lea ecx, [eax - 1]
cmp eax, 8
mov eax, 6
cmovb ecx, eax
mov eax, dword [esp + 0xe0]
shr edx, cl
sub eax, 2
sub eax, edx
cmp eax, ebx
jbe 0x416986
cmp dword [ebp + 0x29c], 0
je 0x416bb0
cmp dword [ebp + 0x28c], 0
jne 0x416c10
cmp ebx, 1
jne 0x416bc3
cmp dword [esp + 0xd8], 3
je 0x4166a6
mov eax, dword [esp + 0xdc]
mov edi, dword [esp + 0xe0]
mov ebx, 4
movzx edx, byte [eax]
mov eax, dword [esp + 0xe4]
lea eax, [eax + edi*8 + 2]
mov edi, dword [esp + 0xd4]
mov word [edi], ax
shr eax, 0x10
mov byte [edi + 3], dl
mov byte [edi + 2], al
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x54]
mov dword [eax], edi
mov edi, dword [esp + 0x58]
mov dword [eax + 4], edi
mov edi, dword [esp + 0x5c]
mov dword [eax + 8], edi
jmp 0x416a18
cmp ebx, 0x18
jbe 0x416cdd
mov esi, dword [ebp + 0x28c]
test esi, esi
jne 0x416c10
mov eax, dword [ebp + 0x810]
mov edx, dword [ebp + 0x814]
mov edi, dword [esp + 0xd4]
mov dword [ebp + 0x814], eax
mov eax, dword [esp + 0xe4]
mov dword [ebp + 0x810], edx
lea eax, [eax + ebx*8 + 4]
add ebx, 3
mov word [edi], ax
shr eax, 0x10
mov byte [edi + 2], al
jmp 0x416a18
mov ecx, dword [ebp + 0x28c]
test ecx, ecx
je 0x416b51
lea esi, [esi]
mov eax, ebp
xor ebx, ebx
call fcn.0040e7c0
mov eax, dword [ebp + 0x810]
mov edx, dword [ebp + 0x814]
mov dword [ebp + 0x814], eax
mov dword [ebp + 0x810], edx
jmp 0x4166ab
cmp edi, 0x7eff
ja 0x416d12
mov ecx, edi
mov edx, edi
shr edx, 8
mov byte [eax + 1], cl
lea ecx, [eax + 2]
add edx, 0xffffff80
mov dword [esp + 0x50], ecx
mov byte [eax], dl
mov eax, dword [esp + 0xd4]
add eax, dword [esp + 0xd8]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x1c], 0x2204
mov dword [esp + 0x6c], eax
mov dword [esp + 0xc], eax
add ecx, 1
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x74]
mov dword [esp + 0x8c], ecx
mov dword [esp + 8], ecx
mov ecx, edi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x40]
add eax, 0x408
mov dword [esp], eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x10], edx
mov edx, esi
call fcn.00416160
mov ebx, dword [esp + 0xa8]
cmp ebx, 0xffffff88
jbe 0x416d2f
cmp ebx, 0xffffffba
sete dl
jmp 0x41696d
xor ebx, ebx
mov edx, dword [esp + 0xe0]
mov eax, dword [esp + 0xdc]
call fcn.0040e640
test eax, eax
jne 0x416bfe
cmp dword [ebp + 0x28c], 0
jne 0x416c10
test ebx, ebx
jne 0x416b4c
jmp 0x4169a2
lea edx, [edi - 0x7f00]
lea ecx, [eax + 3]
mov word [eax + 1], dx
mov edx, 0xffffffff
mov dword [esp + 0x50], ecx
mov byte [eax], dl
jmp 0x416c58
movzx eax, byte [esp + 0x9c]
movzx edx, byte [esp + 0xa0]
movzx esi, byte [esp + 0xa4]
add ebx, dword [esp + 0x8c]
shl edx, 4
shl eax, 6
add eax, edx
lea edx, [esi*4]
mov esi, dword [esp + 0x50]
add eax, edx
mov byte [esi], al
mov eax, dword [esp + 0x68]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x48]
mov dword [esp], ebx
mov esi, dword [esp + 0xac]
mov dword [esp + 0x2c], eax
xor eax, eax
cmp dword [esp + 0x78], 0x19
seta al
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x1c], eax
mov eax, edi
add eax, 0xcb8
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x88]
mov dword [esp + 0xc], eax
mov eax, edi
add eax, 0x70c
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
sub eax, ebx
mov dword [esp + 4], eax
call fcn.004211c0
cmp eax, 0xffffff88
ja 0x416a40
add ebx, eax
test esi, esi
je 0x416dfd
add eax, esi
cmp eax, 3
jbe 0x416986
sub ebx, dword [esp + 0x44]
jmp 0x416ade
mov eax, dword [esp + 0x40]
lea edx, [eax + edi]
jmp 0x41677f