Function at 0x406eb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c460
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x4672b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x74], edi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
test esi, esi
je 0x4074e3
push esi
lea ecx, [edi + 4]
call fcn.00408a60
mov eax, dword [edi + 0x20]
mov edi, dword [edi + 0x1c]
cmp edi, eax
je 0x406f40
mov esi, eax
mov ecx, edi
call fcn.00403400
add edi, 0x18
cmp edi, esi
jne 0x406f27
mov ecx, dword [ebp - 0x74]
mov esi, dword [ebp - 0x78]
mov edi, dword [ecx + 0x1c]
jmp 0x406f43
mov ecx, dword [ebp - 0x74]
mov dword [ecx + 0x20], edi
mov eax, dword [ecx + 0x2c]
mov edi, dword [ecx + 0x28]
mov dword [ebp - 0x7c], eax
cmp edi, eax
je 0x406f6c
mov esi, eax
mov ecx, edi
call fcn.00403400
add edi, 0x18
cmp edi, esi
jne 0x406f55
mov ecx, dword [ebp - 0x74]
mov esi, dword [ebp - 0x78]
mov edi, dword [ecx + 0x28]
mov dword [ecx + 0x2c], edi
cmp word [esi], 0
mov edi, dword [sym.imp.USER32.dll_CharNextW]
je 0x4074e3
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
push 0x450450
call fcn.00408a60
movzx eax, word [esi]
cmp eax, 0x22
jne 0x407149
movzx eax, word [esi + 2]
add esi, 2
mov dword [ebp - 0x80], esi
test ax, ax
je 0x406fe5
mov ecx, eax
nop
cmp cx, 0x22
je 0x406fe5
push esi
call edi
mov esi, eax
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x406fd0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x18]
cmovae ecx, edx
mov edi, dword [ebp - 0x80]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x28]
cmovae ecx, edx
sub eax, ecx
mov dword [ebp - 0x7c], ecx
sar eax, 1
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae ecx, edx
mov edx, dword [ebp - 0x7c]
sub edx, ecx
mov ecx, esi
sub ecx, edi
sar edx, 1
sar ecx, 1
push ecx
push edi
push eax
push edx
lea ecx, [ebp - 0x28]
call fcn.00408c70
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x78], eax
test eax, eax
je 0x407116
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 8
cmovae eax, edx
cmp word [eax], 0x2f
je 0x40708f
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, edx
cmp word [eax], 0x2d
je 0x40708f
mov ecx, dword [ebp - 0x74]
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ecx]
call dword [eax]
mov edi, dword [ebp - 0x74]
lea ecx, [ebp - 0x28]
push ecx
mov eax, dword [edi + 0x2c]
cmp dword [edi + 0x30], eax
je 0x407087
mov ecx, eax
call fcn.00403240
add dword [edi + 0x2c], 0x18
jmp 0x407116
lea ecx, [edi + 0x28]
jmp 0x407110
cmp ecx, 8
lea edi, [ebp - 0x28]
lea eax, [ebp - 0x28]
cmovae eax, edx
cmovae edi, edx
sub edi, eax
mov eax, dword [ebp - 0x78]
sar edi, 1
cmp eax, edi
jb 0x407514
sub eax, edi
mov edx, 1
cmp eax, edx
cmovb edx, eax
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
lea ecx, [eax + edi*2]
mov eax, dword [ebp - 0x78]
sub eax, edx
mov dword [ebp - 0x18], eax
sub eax, edi
lea eax, [eax*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.0042ace0
mov ecx, dword [ebp - 0x74]
lea edx, [ebp - 0x28]
add esp, 0xc
mov eax, dword [ecx]
push edx
call dword [eax + 4]
mov edi, dword [ebp - 0x74]
lea ecx, [ebp - 0x28]
push ecx
mov eax, dword [edi + 0x20]
cmp dword [edi + 0x24], eax
je 0x40710d
mov ecx, eax
call fcn.00403240
add dword [edi + 0x20], 0x18
jmp 0x407116
lea ecx, [edi + 0x1c]
push eax
call fcn.00402bc0
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.0042fcef
add esp, 4
test eax, eax
je 0x4073bd
nop
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.0042fcef
add esp, 4
test eax, eax
jne 0x407130
jmp 0x4073bd
cmp eax, 0x2f
je 0x4071f9
cmp eax, 0x2d
je 0x4071f9
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x407414
xor edi, edi
nop dword [eax]
movzx eax, word [esi]
test ax, ax
je 0x4071a3
push eax
call fcn.0042fcef
add esp, 4
test eax, eax
jne 0x4071a3
movzx eax, word [esi]
lea ecx, [ebp - 0x40]
push eax
call fcn.00403ee0
push esi
call dword [sym.imp.USER32.dll_CharNextW]
inc edi
mov esi, eax
cmp edi, 0x104
jl 0x407170
movzx eax, word [esi]
push eax
call fcn.0042fcef
add esp, 4
test eax, eax
je 0x4071c7
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.0042fcef
add esp, 4
test eax, eax
jne 0x4071b3
mov ecx, dword [ebp - 0x74]
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ecx]
call dword [eax]
mov edi, dword [ebp - 0x74]
lea ecx, [ebp - 0x40]
push ecx
mov eax, dword [edi + 0x2c]
cmp dword [edi + 0x30], eax
je 0x4071f1
mov ecx, eax
call fcn.00403240
add dword [edi + 0x2c], 0x18
jmp 0x4073bd
lea ecx, [edi + 0x28]
jmp 0x4073b7
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
je 0x40738c
mov edi, eax
mov dword [ebp - 0x78], edi
nop
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x88], edx
cmp ecx, edx
jae 0x407243
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
xor edx, edx
mov word [eax + ecx*2], di
mov word [eax + ecx*2 + 2], dx
jmp 0x40733f
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 1
jb 0x40750f
lea eax, [ecx + 1]
mov edi, eax
mov dword [ebp - 0x80], eax
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x40726d
mov edi, 0x7ffffffe
jmp 0x40728b
mov ecx, edx
mov eax, 0x7ffffffe
shr ecx, 1
sub eax, ecx
cmp edx, eax
jbe 0x407283
mov edi, 0x7ffffffe
jmp 0x40728b
lea eax, [ecx + edx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x40]
call fcn.00408870
mov dword [ebp - 0x2c], edi
mov ecx, eax
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebp - 0x80]
add edi, edi
cmp dword [ebp - 0x88], 8
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x30], eax
push edi
jb 0x40731b
mov eax, dword [ebp - 0x40]
push eax
push ecx
mov dword [ebp - 0x80], eax
call fcn.0042a760
mov eax, dword [ebp - 0x84]
add esp, 0xc
mov ecx, dword [ebp - 0x78]
mov word [eax + edi], cx
xor ecx, ecx
mov word [eax + edi + 2], cx
mov eax, dword [ebp - 0x88]
lea ecx, [eax*2 + 2]
mov eax, dword [ebp - 0x80]
cmp ecx, 0x1000
jb 0x407309
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407519
mov eax, edx
push ecx
push eax
call fcn.00428dde
mov eax, dword [ebp - 0x84]
add esp, 8
jmp 0x40733c
lea eax, [ebp - 0x40]
push eax
push ecx
call fcn.0042a760
mov eax, dword [ebp - 0x84]
add esp, 0xc
mov ecx, dword [ebp - 0x78]
mov word [eax + edi], cx
xor ecx, ecx
mov word [eax + edi + 2], cx
mov dword [ebp - 0x40], eax
push esi
call dword [sym.imp.USER32.dll_CharNextW]
mov esi, eax
movzx eax, word [esi]
push eax
call fcn.0042fcef
add esp, 4
test eax, eax
movzx eax, word [esi]
jne 0x40736b
mov edi, eax
mov dword [ebp - 0x78], edi
test ax, ax
jne 0x407210
jmp 0x40738c
push eax
call fcn.0042fcef
add esp, 4
test eax, eax
je 0x40738c
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.0042fcef
add esp, 4
test eax, eax
jne 0x407378
mov ecx, dword [ebp - 0x74]
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x74]
lea ecx, [ebp - 0x40]
push ecx
mov eax, dword [edi + 0x20]
cmp dword [edi + 0x24], eax
je 0x4073b4
mov ecx, eax
call fcn.00403240
add dword [edi + 0x20], 0x18
jmp 0x4073bd
lea ecx, [edi + 0x1c]
push eax
call fcn.00402bc0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4073fb
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4073f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407519
push edx
push ecx
call fcn.00428dde
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
jmp 0x406f6f
xor eax, eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x70]
push esi
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
call fcn.00408a60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x70]
mov edi, dword [ebp - 0x74]
push ecx
mov ecx, edi
mov eax, dword [edi]
call dword [eax]
xor eax, eax
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x58]
push esi
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.00408a60
mov byte [ebp - 4], 3
mov ecx, dword [edi + 0x2c]
cmp dword [edi + 0x30], ecx
je 0x4074b2
movups xmm0, xmmword [ebp - 0x58]
movups xmmword [ecx], xmm0
movq xmm0, qword [ebp - 0x48]
movq qword [ecx + 0x10], xmm0
xor ecx, ecx
add dword [edi + 0x2c], 0x18
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], cx
jmp 0x4074bf
lea edx, [ebp - 0x58]
push edx
push ecx
lea ecx, [edi + 0x28]
call fcn.00402d40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
call fcn.00403400
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00403400
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00403400
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00403400
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret 4
call fcn.004086f0
call fcn.00408710
call fcn.0042fc66
int3