Function at 0x406890
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598132
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x6200b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xd8], ebx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xdc], eax
lea esi, [ebx + 0x4c]
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
cmp esi, eax
je 0x4068ec
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00402ae0
add ebx, 0x64
cmp ebx, esi
je 0x4068ff
push 0xffffffffffffffff
push 0
push esi
mov ecx, ebx
call fcn.00402ae0
lea eax, [ebp - 0x28]
push str.43355423066425411340622061073636
push eax
call fcn.00425aa8
mov esi, eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 1
push str.67518947036756241167664868024529
push eax
call fcn.00425aa8
push esi
push eax
push ebx
mov byte [ebp - 4], 2
call fcn.0041fe45
mov eax, dword [ebp - 0x8c]
add esp, 0x1c
cmp eax, 8
jb 0x406951
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.004030a0
xor eax, eax
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x90], 0
cmp eax, 8
jb 0x406986
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004030a0
call fcn.0042c5b8
test al, al
je 0x4069a8
pop esi
pop eax
push esp
pop edx
pop esi
push edx
pop ebp
push eax
push esp
pop ebx
push edi
pop edx
push ebp
pop eax
push edi
push esp
push edi
pop esp
pop edi
pop esi
push esp
pop edi
pop esi
pop ebp
push ebx
call fcn.0042c4a4
test al, al
je 0x4069c7
pop ebx
pop eax
push ebp
pop esi
push ebx
pop eax
push edx
push ecx
pop edx
push esi
pop edx
pop eax
push eax
push esp
pop ecx
pop esp
pop edi
pop ecx
push ecx
pop ebx
pop esp
push esp
call fcn.0042c52e
test al, al
je 0x4069ef
push ecx
push ebx
push ebx
pop edi
pop edx
pop ecx
pop edi
push ecx
pop esp
push esi
pop edx
push ecx
push edx
pop eax
push edx
pop esi
pop esi
push ebx
push edi
push edi
pop edx
pop edi
push ecx
pop ebx
push esp
pop edx
pop esi
pop eax
push edx
pop ebx
push edx
xor eax, eax
mov dword [ebp - 0xbc], 7
push eax
push 0x617ad8
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
call fcn.004029e0
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x617ad8
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.004029e0
mov ebx, dword [ebp - 0xd8]
add ebx, 0x4c
mov byte [ebp - 4], 4
cmp dword [ebx + 0x14], 8
jb 0x406a5a
mov eax, dword [ebx]
jmp 0x406a5c
mov eax, ebx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0042b7ad
mov byte [ebp - 4], 5
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042b684
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x58]
cmp eax, esi
je 0x406abd
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x406aa0
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004030a0
xor eax, eax
mov dword [ebp - 0x44], 7
push esi
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00402c00
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x406ad6
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004030a0
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0042073c
push 0
call fcn.0043f837
mov dword [ebp - 0xe4], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x74], 7
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], eax
mov word [ebp - 0x40], ax
mov byte [ebp - 4], 9
mov dword [ebp - 0xe0], eax
call fcn.0042c687
test al, al
je 0x406b48
push eax
push ebp
push ebp
push edi
push esp
push esp
push edx
push esp
pop eax
pop esi
push esp
push edi
pop eax
push esi
pop ebp
pop edi
push ebp
push ecx
push eax
push esp
push esi
push ebx
push ebx
push edx
push ecx
pop ebp
call fcn.0042c573
test al, al
je 0x406b66
push esi
pop edi
push eax
push ecx
push esi
push esi
pop ecx
push esi
pop ecx
push eax
push edx
push eax
pop ebp
pop esi
push eax
pop ecx
pop esp
pop edi
push eax
pop edx
pop edx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x88]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x406ba3
mov eax, dword [ecx]
jmp 0x406ba5
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push ebx
mov word [eax], dx
call fcn.00402ae0
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0xd8]
mov ecx, edi
push esi
call fcn.00405a20
test al, al
je 0x406e14
cmp dword [ebp - 0xbc], 8
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xe0], 1
cmovae eax, dword [ebp - 0xd0]
push eax
call fcn.0043f764
add eax, dword [edi]
add esp, 4
cmp eax, dword [ebp - 0xe4]
jl 0x406c1f
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0x70]
cmp eax, ecx
je 0x406dc1
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00402ae0
jmp 0x406dc1
lea eax, [ebp - 0xa0]
push ebx
push eax
call fcn.0042073c
add esp, 8
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x406c3b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042ad66
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.00402640
lea ecx, [ebp - 0x28]
call fcn.00402600
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00402760
cmp dword [ebp - 0x30], 0
jne 0x406cca
lea esi, [edi + 0x64]
mov ecx, ebx
mov edx, esi
call fcn.00407660
test al, al
je 0x406cc7
lea eax, [ebp - 0xa0]
push esi
push eax
call fcn.0042073c
add esp, 8
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0x10
jb 0x406c9a
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042ad66
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.00402640
lea ecx, [ebp - 0x28]
call fcn.00402600
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00402760
mov esi, dword [ebp + 8]
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x88]
push dword [ebp - 0x78]
cmovae ecx, dword [ebp - 0x88]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push dword [ebp - 0x30]
push eax
call fcn.00404de0
add esp, 0x10
test eax, eax
jne 0x406e14
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0x70]
cmp eax, ecx
je 0x406d17
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00402ae0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe8], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x406d48
mov eax, dword [ecx]
jmp 0x406d4a
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x70]
push edx
push eax
call fcn.00402ae0
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0xe4], esp
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x14], 7
cmp dword [ecx + 0x14], 8
mov dword [ecx + 0x10], 0
jb 0x406d90
mov eax, dword [ecx]
jmp 0x406d92
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x88]
push edx
push eax
call fcn.00402ae0
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
push ebx
call fcn.00402720
push esi
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.004060d0
cmp dword [ebp - 0xa4], 0x10
lea esi, [ebp - 0xb8]
mov eax, dword [0x6298a0]
cmovae esi, dword [ebp - 0xb8]
test eax, eax
jne 0x406dfd
push 0xe8
call fcn.0041b975
add esp, 4
mov dword [ebp - 0xe8], eax
mov ecx, eax
call fcn.0040e7a0
mov dword [0x6298a0], eax
push 0
push esi
sub esp, 8
mov ecx, eax
call fcn.0040f420
mov esi, 1
jmp 0x40712c
cmp dword [ebp + 0x28], 0
jne 0x406e2f
mov ecx, dword [ebp - 0xdc]
push 0x617ad8
call fcn.00402990
jmp 0x40712a
mov esi, dword [ebp - 0xdc]
cmp dword [esi + 0x10], 0
jne 0x406ee7
cmp dword [ebp + 8], 0
je 0x406e8b
add edi, 0x1c
cmp dword [edi + 0x14], 8
jb 0x406e50
mov edi, dword [edi]
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0042bc1f
add esp, 8
mov ecx, esi
push eax
call fcn.00402640
lea ecx, [ebp - 0x28]
call fcn.00402600
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042b9a0
add esp, 8
mov byte [ebp - 4], 0xe
jmp 0x406ecf
add edi, 4
cmp dword [edi + 0x14], 8
jb 0x406e96
mov edi, dword [edi]
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0042bc1f
add esp, 8
mov ecx, esi
push eax
call fcn.00402640
lea ecx, [ebp - 0x28]
call fcn.00402600
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042b9a0
add esp, 8
mov byte [ebp - 4], 0xf
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407490
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00402600
call fcn.0042c687
test al, al
je 0x406f14
push edx
push edi
pop edi
pop ebp
push ebp
pop ebx
pop esp
pop ebx
push eax
pop ebp
push ebx
push esi
pop edi
pop eax
push esi
push esp
push eax
pop ebx
push ecx
push esi
pop edx
pop esi
pop esp
pop edx
push eax
push eax
push esi
pop eax
push ecx
pop ebx
mov esi, dword [ebp - 0xdc]
call fcn.0042c1f2
test al, al
je 0x406f2e
push edi
pop edi
push esi
push esp
pop ecx
push edx
push ebx
pop ebx
push ebp
push edx
pop edi
push esi
pop ebp
pop edx
push esp
push eax
push esi
cmp dword [esi + 0x14], 8
jb 0x406f38
mov eax, dword [esi]
jmp 0x406f3a
mov eax, esi
push eax
call fcn.00423d4c
mov eax, dword [ebp - 0xd8]
add esp, 4
cmp dword [eax + 0x60], 8
lea ebx, [eax + 0x4c]
jb 0x406f56
mov ecx, dword [ebx]
jmp 0x406f58
mov ecx, ebx
cmp dword [eax + 0x78], 8
lea edi, [eax + 0x64]
jb 0x406f65
mov eax, dword [edi]
jmp 0x406f67
mov eax, edi
push dword [ebx + 0x10]
push ecx
push dword [edi + 0x10]
push eax
call fcn.00404de0
mov ecx, dword [ebp - 0xd8]
add esp, 0x10
push esi
test eax, eax
je 0x406f9f
push 0
call fcn.00406490
test eax, eax
setne al
mov byte [ebp - 0xd1], al
test al, al
jne 0x406faf
mov ecx, dword [ebp - 0xd8]
push esi
push 1
call fcn.00406490
test eax, eax
setne byte [ebp - 0xd1]
cmp dword [esi + 0x14], 8
jb 0x406fb9
mov eax, dword [esi]
jmp 0x406fbb
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x407104
cmp byte [ebp - 0xd1], 0
je 0x407104
cmp dword [ebp - 0xe0], 0
lea eax, [ebp - 0xb8]
jne 0x406fea
push 2
jmp 0x406fec
push 3
cmp dword [ebp - 0xa4], 0x10
cmovae eax, dword [ebp - 0xb8]
push eax
sub esp, 8
call fcn.00403810
mov ecx, eax
call fcn.0040f420
cmp dword [ebp - 0x30], 0
jne 0x4070b8
lea eax, [ebp - 0xa0]
push ebx
push eax
call fcn.0042073c
add esp, 8
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], 0x10
jb 0x407030
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042ad66
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.00402640
lea ecx, [ebp - 0x28]
call fcn.00402600
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00402760
cmp dword [ebp - 0x30], 0
jne 0x4070b8
mov edx, edi
mov ecx, ebx
call fcn.00407660
test al, al
je 0x4070b8
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042073c
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.00402750
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042ad66
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.00402640
lea ecx, [ebp - 0x28]
call fcn.00402600
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00402760
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe8], esp
push esi
call fcn.00402720
sub esp, 0x18
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x40]
mov dword [ebp - 0xe4], esp
mov ecx, esp
push eax
call fcn.00402720
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
push ebx
call fcn.00402720
push dword [ebp + 8]
mov ecx, dword [ebp - 0xd8]
mov byte [ebp - 4], 9
call fcn.004060d0
jmp 0x40712a
cmp dword [ebp - 0xa4], 0x10
lea eax, [ebp - 0xb8]
push 1
cmovae eax, dword [ebp - 0xb8]
push eax
sub esp, 8
call fcn.00403810
mov ecx, eax
call fcn.0040f420
xor esi, esi
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x407141
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.004030a0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x407170
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.004030a0
xor eax, eax
mov dword [ebp - 0x74], 7
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
call fcn.00402760
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x4071a7
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.004030a0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x4071d0
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.004030a0
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x407202
inc eax
lea ecx, [ebp - 0xd0]
push eax
push dword [ebp - 0xd0]
call fcn.004030a0
xor eax, eax
mov dword [ebp - 0xbc], 7
lea ecx, [ebp + 0xc]
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
call fcn.00402600
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041b6a9
mov esp, ebp
pop ebp
ret 0x24