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

Disassembly:
push ebp
push edi
push esi
push ebx
push eax
mov eax, 0x10b8
call fcn.0041f3f0
sub esp, eax
mov eax, dword [esp + eax]
mov dword [esp + 0x30], edx
mov ecx, dword [eax + 4]
mov ebx, eax
mov esi, dword [eax]
cmp ecx, 0
ja 0x41664e
cmp esi, 0x15
ja 0x41664e
mov dword [ebx + 0x1c], 8
jmp 0x416c57
cmp ecx, 0
mov eax, esi
mov edx, ecx
jl 0x416673
jg 0x416661
cmp esi, 0x1000
jbe 0x416673
add eax, 0xfffff000
adc edx, 0xffffffff
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
jmp 0x416683
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
lea ebp, [esp + 0xb0]
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov esi, eax
sub esi, dword [esp + 0x20]
mov edi, edx
sbb edi, dword [esp + 0x24]
cmp edi, 0
ja 0x4166b0
cmp esi, 0x1000
ja 0x4166b0
mov esi, eax
sub esi, dword [esp + 0x20]
jmp 0x4166b5
mov esi, 0x1000
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call dword [ebx + 0x38]
cmp esi, eax
jne 0x416761
lea ecx, [esi - 4]
mov eax, ecx
cdq
add eax, dword [esp + 0x20]
adc edx, dword [esp + 0x24]
mov esi, eax
mov edi, edx
test ecx, ecx
js 0x416741
cmp dword [ecx + ebp], 0x6054b50
jne 0x416710
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
sub eax, esi
sbb edx, edi
cmp edx, 0
ja 0x416719
cmp eax, 0x15
ja 0x416719
dec ecx
add esi, 0xffffffff
adc edi, 0xffffffff
jmp 0x4166f0
mov dword [esp + 0x10], 0x16
mov dword [esp + 0xc], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], edi
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call dword [ebx + 0x38]
cmp eax, 0x16
jne 0x416baa
jmp 0x41676f
mov eax, dword [esp + 0x24]
or eax, dword [esp + 0x20]
je 0x416761
mov eax, dword [ebx]
sub eax, dword [esp + 0x20]
mov edx, dword [ebx + 4]
sbb edx, dword [esp + 0x24]
cmp edx, 0
jbe 0x4170b6
xor eax, eax
mov dword [ebx + 0x1c], 7
jmp 0x4170fb
cmp dword [esp + 0xb0], 0x6054b50
jne 0x416642
cmp edi, 0
jg 0x416794
jl 0x41682d
cmp esi, 0x4b
jbe 0x41682d
lea eax, [esp + 0x64]
mov edx, edi
mov dword [esp + 0x10], 0x14
mov dword [esp + 0xc], eax
mov eax, esi
add eax, 0xffffffec
adc edx, 0xffffffff
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call dword [ebx + 0x38]
cmp eax, 0x14
jne 0x41682d
cmp dword [esp + 0x64], 0x7064b50
jne 0x41682d
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov ecx, dword [esp + 0x70]
mov esi, dword [esp + 0x6c]
add eax, 0xffffffc8
adc edx, 0xffffffff
cmp ecx, edx
ja 0x416642
jb 0x4167f3
cmp esi, eax
ja 0x416642
lea eax, [esp + 0x78]
mov dword [esp + 0x10], 0x38
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call dword [ebx + 0x38]
cmp eax, 0x38
jne 0x41682d
cmp dword [esp + 0x78], 0x6064b50
jne 0x41682d
mov eax, dword [ebx + 0x48]
mov dword [eax + 0x34], 1
mov esi, dword [ebx + 0x48]
movzx eax, word [esp + 0xba]
cmp dword [esi + 0x34], 0
mov dword [ebx + 0x10], eax
jne 0x416876
movzx eax, word [esp + 0xb4]
mov edi, dword [esp + 0xbc]
xor ebp, ebp
movzx ecx, word [esp + 0xb8]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x3c], eax
movzx eax, word [esp + 0xb6]
jmp 0x416912
cmp dword [esp + 0x80], 0
ja 0x41688b
cmp dword [esp + 0x7c], 0x2b
jbe 0x416bc9
cmp dword [esp + 0x74], 1
je 0x41689e
mov dword [ebx + 0x1c], 0xa
jmp 0x416c57
cmp dword [esp + 0x9c], 0
mov edi, dword [esp + 0x98]
je 0x4168bb
mov dword [ebx + 0x1c], 2
jmp 0x416c57
cmp dword [esp + 0x94], 0
mov ecx, dword [esp + 0x90]
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + 0xa4]
mov dword [ebx + 0x10], edi
ja 0x4168af
cmp edx, 0
jbe 0x4168ee
mov dword [ebx + 0x1c], 0xf
jmp 0x416c57
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x88]
mov edi, dword [esp + 0xa8]
mov ebp, dword [esp + 0xac]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x8c]
cmp ecx, dword [ebx + 0x10]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ebp
jne 0x416892
mov edi, dword [esp + 0x3c]
or edi, eax
je 0x41693d
cmp dword [esp + 0x3c], 1
jne 0x416892
dec eax
jne 0x416892
imul eax, ecx, 0x2e
cmp dword [esp + 0x20], eax
jb 0x416bc9
xor edx, edx
mov eax, dword [esp + 0x20]
add eax, dword [esp + 0x28]
adc edx, dword [esp + 0x2c]
cmp edx, dword [ebx + 4]
ja 0x416bc9
jb 0x41696b
cmp eax, dword [ebx]
ja 0x416bc9
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
and eax, 0x800
test ecx, ecx
mov dword [ebx + 0xc], edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 8], eax
jne 0x41699a
cmp dword [esp + 0x4c], 0
jne 0x416d3b
jmp 0x416d45
mov eax, dword [esp + 0x20]
cmp eax, dword [esi + 8]
ja 0x4169ba
mov edi, dword [ebx + 0x48]
mov eax, dword [esp + 0x20]
mov dword [esi + 4], eax
mov esi, dword [ebx + 0x10]
lea edx, [edi + 0x10]
cmp dword [edi + 0x18], esi
jae 0x4169e8
jmp 0x4169d4
mov ecx, dword [esp + 0x20]
mov dword [esp], 0
mov edx, esi
mov eax, ebx
call fcn.00416134
test eax, eax
je 0x416a14
jmp 0x4169a3
mov dword [esp], 0
mov ecx, esi
mov eax, ebx
call fcn.00416134
test eax, eax
je 0x416a14
cmp dword [esp + 0x4c], 0
mov dword [edi + 0x14], esi
jne 0x416a23
mov edi, dword [ebx + 0x48]
mov esi, dword [ebx + 0x10]
cmp esi, dword [edi + 0x28]
lea edx, [edi + 0x20]
jbe 0x416a20
mov dword [esp], 0
mov ecx, esi
mov eax, ebx
call fcn.00416134
test eax, eax
jne 0x416a20
mov dword [ebx + 0x1c], 0x10
jmp 0x416c57
mov dword [edi + 0x24], esi
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x48]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call dword [ebx + 0x38]
cmp dword [esp + 0x20], eax
jne 0x416baa
mov eax, dword [ebx + 0x48]
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x48], 0
mov edi, dword [eax]
mov eax, dword [esp + 0x28]
add eax, 0x2e
adc edx, 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
jmp 0x416aa2
movzx eax, word [edi + 0x1e]
movzx edx, word [edi + 0x1c]
lea edx, [edx + eax + 0x2e]
movzx eax, word [edi + 0x20]
add eax, edx
cmp dword [esp + 0x20], eax
jb 0x416bc9
sub dword [esp + 0x20], eax
inc dword [esp + 0x48]
add edi, eax
mov eax, dword [esp + 0x48]
cmp eax, dword [ebx + 0x10]
jae 0x41698a
cmp dword [esp + 0x20], 0x2d
jbe 0x416bc9
cmp dword [edi], 0x2014b50
jne 0x416bc9
mov eax, dword [ebx + 0x48]
mov ecx, edi
mov esi, dword [esp + 0x48]
sub ecx, dword [eax]
cmp dword [esp + 0x4c], 0
mov edx, dword [eax + 0x10]
mov dword [edx + esi*4], ecx
jne 0x416ae4
mov edx, dword [eax + 0x20]
mov dword [edx + esi*4], esi
mov edx, dword [edi + 0x14]
xor ecx, ecx
mov dword [esp + 0x2c], ecx
xor ecx, ecx
mov dword [esp + 0x34], ecx
xor ecx, ecx
cmp dword [eax + 0x38], 0
mov dword [esp + 0x28], edx
mov edx, dword [edi + 0x18]
mov dword [esp + 0x44], ecx
movzx ecx, word [edi + 0x1e]
mov dword [esp + 0x30], edx
mov edx, dword [edi + 0x2a]
mov dword [esp + 0x40], edx
movzx edx, word [edi + 0x1c]
mov ebp, edx
jne 0x416c11
test ecx, ecx
je 0x416c11
mov edx, dword [esp + 0x2c]
cmp edx, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
jbe 0x416c5e
cmp edx, dword [esp + 0x44]
jbe 0x416c77
not eax
or eax, edx
jne 0x416c11
lea eax, [ecx + ebp + 0x2e]
cmp dword [esp + 0x20], eax
jae 0x416bb6
mov dword [esp], ecx
mov dword [esp + 0x40], ecx
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x416a14
mov dword [esp + 0xc], eax
xor edx, edx
mov eax, ebp
add eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
adc edx, dword [esp + 0x54]
mov dword [esp + 0x10], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebx + 0x44]
mov dword [esp], eax
call dword [ebx + 0x38]
mov ecx, dword [esp + 0x40]
cmp ecx, eax
je 0x416c90
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [ebx + 0x1c], 0x14
jmp 0x416c57
lea eax, [edi + ebp + 0x2e]
xor esi, esi
cmp ecx, 3
ja 0x416bd5
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [ebx + 0x1c], 9
jmp 0x416c57
mov dx, word [eax]
mov word [esp + 0x58], dx
movzx edx, word [eax + 2]
lea ebp, [edx + 4]
cmp ecx, ebp
mov dword [esp + 0x40], ebp
jb 0x416bc1
cmp word [esp + 0x58], 1
jne 0x416c97
mov eax, dword [ebx + 0x48]
mov dword [eax + 0x34], 1
mov dword [eax + 0x38], 1
mov dword [esp], esi
call sub.msvcrt.dll_free
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
not edx
or eax, edx
jne 0x416caf
movzx eax, word [edi + 0x22]
cmp eax, 0xffff
je 0x416892
cmp dword [esp + 0x3c], eax
jne 0x416d00
or edx, dword [esp + 0x2c]
jne 0x416d0c
test byte [edi + 9], 0x20
je 0x416a7c
mov dword [ebx + 0x1c], 5
xor eax, eax
jmp 0x4170fb
jb 0x416c6a
cmp eax, dword [esp + 0x30]
jae 0x416b39
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
jmp 0x416b39
jb 0x416c83
cmp eax, dword [esp + 0x40]
jae 0x416b43
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
jmp 0x416b43
mov eax, esi
jmp 0x416bbc
mov ebp, 0xfffffffc
add eax, dword [esp + 0x40]
sub ebp, edx
add ecx, ebp
jne 0x416bbc
jmp 0x416c09
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
not eax
or eax, ecx
je 0x416c23
cmp dword [edi + 0xa], 0
jne 0x416cdf
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
xor ecx, dword [esp + 0x30]
xor eax, dword [esp + 0x34]
or ecx, eax
jne 0x416bc9
mov eax, dword [esp + 0x30]
or eax, dword [esp + 0x34]
je 0x416c23
mov eax, dword [esp + 0x28]
or eax, dword [esp + 0x2c]
jne 0x416c23
jmp 0x416bc9
dec eax
je 0x416c3c
jmp 0x416892
xor edx, edx
mov eax, dword [edi + 0x2a]
add eax, dword [esp + 0x28]
adc edx, dword [esp + 0x2c]
add eax, 0x1e
adc edx, 0
cmp edx, dword [ebx + 4]
ja 0x416bc9
jb 0x416c46
cmp eax, dword [ebx]
ja 0x416bc9
jmp 0x416c46
mov eax, 1
jmp 0x4170fb
mov ebp, dword [ebx + 0x10]
mov eax, dword [ebx + 0x48]
lea ecx, [ebp - 2]
mov dword [esp + 0x20], eax
mov eax, dword [eax + 0x20]
sar ecx, 1
mov dword [esp + 0x3c], ecx
cmp dword [esp + 0x3c], 0
js 0x416fbe
mov edi, dword [esp + 0x3c]
lea esi, [edi + edi]
lea ebx, [esi + 1]
cmp ebp, ebx
mov dword [esp + 0x48], ebx
jle 0x416ef7
add esi, 2
xor ecx, ecx
cmp ebp, esi
jle 0x416e29
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4 - 4]
mov edx, dword [edx]
mov esi, dword [eax + esi*4]
add edx, dword [ebx + ecx*4]
mov ecx, edx
mov edx, dword [esp + 0x20]
add ecx, 0x2e
mov edx, dword [edx]
add edx, dword [ebx + esi*4]
movzx esi, word [ecx - 0x12]
mov ebx, edx
add ebx, 0x2e
mov dword [esp + 0x28], esi
movzx esi, word [edx + 0x1c]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x28]
cmp ebx, esi
mov dword [esp + 0x30], esi
jbe 0x416dd1
mov ebx, esi
add ebx, ecx
mov dword [esp + 0x40], ebx
xor ebx, ebx
cmp dword [esp + 0x40], ecx
jbe 0x416e0d
mov bl, byte [ecx]
lea esi, [ebx - 0x41]
mov edx, esi
cmp dl, 0x19
ja 0x416dee
add ebx, 0x20
mov edx, dword [esp + 0x4c]
movzx esi, byte [edx]
lea edx, [esi - 0x41]
cmp dl, 0x19
ja 0x416e00
add esi, 0x20
mov edx, esi
cmp bl, dl
jne 0x416e0f
inc ecx
inc dword [esp + 0x4c]
jmp 0x416dd9
mov esi, ebx
cmp dword [esp + 0x40], ecx
jne 0x416e1f
mov ebx, dword [esp + 0x30]
cmp dword [esp + 0x28], ebx
jmp 0x416e23
mov edx, esi
cmp bl, dl
setb cl
movzx ecx, cl
add ecx, dword [esp + 0x48]
lea edi, [eax + edi*4]
mov dword [esp + 0x4c], edi
mov edi, dword [edi]
mov dword [esp + 0x30], ecx
lea ecx, [eax + ecx*4]
mov dword [esp + 0x58], edi
mov edi, dword [esp + 0x20]
mov ebx, dword [ecx]
mov dword [esp + 0x48], ecx
mov esi, dword [edi + 0x10]
mov dword [esp + 0x40], ebx
mov ebx, dword [edi]
mov edi, dword [esp + 0x58]
mov ecx, dword [esi + edi*4]
mov edi, dword [esp + 0x40]
add ecx, ebx
add ebx, dword [esi + edi*4]
movzx edi, word [ecx + 0x1c]
add ecx, 0x2e
lea esi, [ebx + 0x2e]
mov dword [esp + 0x28], edi
movzx edi, word [ebx + 0x1c]
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x28]
cmp esi, edi
jbe 0x416e84
mov esi, edi
add esi, ecx
mov dword [esp + 0x50], esi
xor esi, esi
cmp dword [esp + 0x50], ecx
jbe 0x416ebe
movzx esi, byte [ecx]
lea ebx, [esi - 0x41]
cmp bl, 0x19
ja 0x416ea0
add esi, 0x20
mov edx, dword [esp + 0x5c]
mov bl, byte [edx]
lea edx, [ebx - 0x41]
cmp dl, 0x19
ja 0x416eb1
add ebx, 0x20
mov edx, esi
cmp dl, bl
jne 0x416ec0
inc ecx
inc dword [esp + 0x5c]
jmp 0x416e8c
mov ebx, esi
cmp dword [esp + 0x50], ecx
jne 0x416ecc
cmp dword [esp + 0x28], edi
jmp 0x416ed0
mov edx, esi
cmp dl, bl
setb cl
movzx ecx, cl
test ecx, ecx
je 0x416ef7
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x40]
mov esi, dword [esp + 0x58]
mov dword [edi], ecx
mov edi, dword [esp + 0x48]
mov dword [edi], esi
mov edi, dword [esp + 0x30]
jmp 0x416d6a
dec dword [esp + 0x3c]
jmp 0x416d5b
add esi, 2
xor ecx, ecx
cmp ebp, esi
jg 0x416fd5
add ecx, dword [esp + 0x3c]
lea edi, [eax + edi*4]
mov dword [esp + 0x40], edi
mov edi, dword [edi]
mov dword [esp + 0x30], ecx
lea ecx, [eax + ecx*4]
mov dword [esp + 0x4c], edi
mov edi, dword [esp + 0x20]
mov esi, dword [ecx]
mov dword [esp + 0x3c], ecx
mov ebx, dword [edi]
mov dword [esp + 0x48], esi
mov esi, dword [edi + 0x10]
mov edi, dword [esp + 0x4c]
mov ecx, dword [esi + edi*4]
mov edi, dword [esp + 0x48]
add ecx, ebx
add ebx, dword [esi + edi*4]
movzx edi, word [ecx + 0x1c]
add ecx, 0x2e
add ebx, 0x2e
mov dword [esp + 0x28], edi
movzx edi, word [ebx - 0x12]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x50], ebx
cmp esi, edi
jbe 0x416f68
mov esi, edi
add esi, ecx
mov dword [esp + 0x58], esi
xor esi, esi
cmp dword [esp + 0x58], ecx
ja 0x41707a
mov ebx, esi
cmp dword [esp + 0x58], ecx
jne 0x4170ad
cmp dword [esp + 0x28], edi
setb cl
movzx ecx, cl
test ecx, ecx
je 0x416fbe
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
mov dword [edi], ecx
mov edi, dword [esp + 0x3c]
mov dword [edi], esi
mov edi, dword [esp + 0x30]
lea esi, [edi + edi]
lea ecx, [esi + 1]
cmp ebp, ecx
mov dword [esp + 0x3c], ecx
jg 0x416f00
dec ebp
test ebp, ebp
jle 0x416d3b
mov ecx, dword [eax + ebp*4]
mov ebx, dword [eax]
xor edi, edi
mov dword [eax + ebp*4], ebx
mov dword [eax], ecx
jmp 0x416fac
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x10]
mov ecx, dword [eax + esi*4 - 4]
mov edx, dword [edx]
mov esi, dword [eax + esi*4]
add edx, dword [ebx + ecx*4]
mov ecx, edx
mov edx, dword [esp + 0x20]
add ecx, 0x2e
mov edx, dword [edx]
add edx, dword [ebx + esi*4]
movzx esi, word [ecx - 0x12]
mov ebx, edx
add ebx, 0x2e
mov dword [esp + 0x28], esi
movzx esi, word [edx + 0x1c]
mov dword [esp + 0x40], ebx
mov ebx, dword [esp + 0x28]
cmp ebx, esi
mov dword [esp + 0x30], esi
jbe 0x41701d
mov ebx, esi
add ebx, ecx
mov dword [esp + 0x48], ebx
xor ebx, ebx
cmp dword [esp + 0x48], ecx
jbe 0x417059
mov bl, byte [ecx]
lea esi, [ebx - 0x41]
mov edx, esi
cmp dl, 0x19
ja 0x41703a
add ebx, 0x20
mov edx, dword [esp + 0x40]
movzx esi, byte [edx]
lea edx, [esi - 0x41]
cmp dl, 0x19
ja 0x41704c
add esi, 0x20
mov edx, esi
cmp bl, dl
jne 0x41705b
inc ecx
inc dword [esp + 0x40]
jmp 0x417025
mov esi, ebx
cmp dword [esp + 0x48], ecx
jne 0x41706b
mov ebx, dword [esp + 0x30]
cmp dword [esp + 0x28], ebx
jmp 0x41706f
mov edx, esi
cmp bl, dl
setb cl
movzx ecx, cl
jmp 0x416f0d
movzx esi, byte [ecx]
lea ebx, [esi - 0x41]
cmp bl, 0x19
ja 0x417088
add esi, 0x20
mov ebx, dword [esp + 0x50]
mov bl, byte [ebx]
lea edx, [ebx - 0x41]
cmp dl, 0x19
ja 0x417099
add ebx, 0x20
mov edx, esi
cmp dl, bl
jne 0x416f7c
inc ecx
inc dword [esp + 0x50]
jmp 0x416f70
mov edx, esi
cmp dl, bl
jmp 0x416f8a
cmp eax, 0x10014
ja 0x416761
cmp dword [esp + 0x24], 0
jge 0x4170dd
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
jmp 0x41668a
jg 0x4170e9
cmp dword [esp + 0x20], 0xffd
jbe 0x4170c8
add dword [esp + 0x20], 0xfffff003
adc dword [esp + 0x24], 0xffffffff
jmp 0x41668a
add esp, 0x10bc
pop ebx
pop esi
pop edi
pop ebp
ret