Function at 0x402e60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59e9f6
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x628144]
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 - 0xe0], ebx
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xd8], eax
lea edi, [ebx + 0x4c]
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
cmp edi, eax
je 0x402ebc
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.004022e0
add ebx, 0x64
cmp ebx, edi
je 0x402ecf
push 0xffffffffffffffff
push 0
push edi
mov ecx, ebx
call fcn.004022e0
lea eax, [ebp - 0x28]
push str.43355423066425411340622061073636
push eax
call fcn.00427984
mov esi, eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push str.67518947036756241167664868024529
push eax
call fcn.00427984
push esi
push eax
push ebx
mov byte [ebp - 4], 2
call fcn.0042b80a
mov eax, dword [ebp - 0x5c]
add esp, 0x1c
cmp eax, 8
jb 0x402f15
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00402500
xor eax, eax
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x60], 0
cmp eax, 8
jb 0x402f41
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402500
call fcn.00426963
test al, al
je 0x402f63
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.0042684f
test al, al
je 0x402f82
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.004268d9
test al, al
je 0x402faa
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 0x5a355c
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
call fcn.00402400
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x5a355c
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
call fcn.00402400
mov ebx, dword [ebp - 0xe0]
add ebx, 0x4c
mov byte [ebp - 4], 4
cmp dword [ebx + 0x14], 8
jb 0x403021
mov eax, dword [ebx]
jmp 0x403023
mov eax, ebx
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0042a099
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
mov byte [ebp - 4], 5
cmovae eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00429f70
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x88]
cmp eax, esi
je 0x40309c
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x403079
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00402500
xor eax, eax
mov dword [ebp - 0x74], 7
push esi
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
call fcn.00404790
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp eax, 8
jb 0x4030b5
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00402500
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042c06b
push 0
call fcn.0044691c
mov dword [ebp - 0xe4], eax
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x8c], 7
mov dword [ebp - 0x90], 0
mov word [ebp - 0xa0], ax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], eax
mov word [ebp - 0x58], ax
mov byte [ebp - 4], 9
mov dword [ebp - 0xdc], eax
call fcn.00426a32
test al, al
je 0x40312d
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.0042691e
test al, al
je 0x40314b
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 - 0xb8]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xa0]
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 0x40318b
mov eax, dword [ecx]
jmp 0x40318d
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push ebx
mov word [eax], dx
call fcn.004022e0
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 0xe0]
mov ecx, edi
push esi
call fcn.00403b20
test al, al
je 0x403356
cmp dword [ebp - 0xbc], 8
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xdc], 1
cmovae eax, dword [ebp - 0xd0]
push eax
call fcn.00446849
add eax, dword [edi]
add esp, 4
cmp eax, dword [ebp - 0xe4]
jl 0x40320a
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xb8]
cmp eax, ecx
je 0x40332e
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.004022e0
jmp 0x40332e
lea eax, [ebp - 0x70]
push ebx
push eax
call fcn.0042c06b
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x403223
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00426fcc
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00402d90
lea ecx, [ebp - 0x28]
call fcn.0041a870
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00402c40
cmp dword [ebp - 0x48], 0
jne 0x4032aa
lea esi, [edi + 0x64]
push esi
push ebx
call fcn.00402a40
add esp, 8
test al, al
je 0x4032a7
lea eax, [ebp - 0x70]
push esi
push eax
call fcn.0042c06b
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x40327d
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00426fcc
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00402d90
lea ecx, [ebp - 0x28]
call fcn.0041a870
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00402c40
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00402a00
add esp, 8
test al, al
je 0x403356
mov eax, dword [ebp - 0xd8]
lea ecx, [ebp - 0xb8]
cmp eax, ecx
je 0x4032e1
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.004022e0
sub esp, 0x18
lea eax, [ebp - 0xb8]
mov ecx, esp
mov dword [ebp - 0xe8], esp
push eax
call fcn.00402b50
sub esp, 0x18
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xe4], esp
mov ecx, esp
push eax
call fcn.00402b50
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
push ebx
call fcn.00402b50
push esi
mov ecx, edi
mov byte [ebp - 4], 9
call fcn.00404250
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.004041d0
mov ecx, eax
call fcn.00416fc0
mov esi, 1
jmp 0x40362d
cmp dword [ebp + 0x28], 0
jne 0x403371
mov ecx, dword [ebp - 0xd8]
push 0x5a355c
call fcn.00402e10
jmp 0x40362b
mov esi, dword [ebp - 0xd8]
cmp dword [esi + 0x10], 0
jne 0x403429
cmp dword [ebp + 8], 0
je 0x4033cd
add edi, 0x1c
cmp dword [edi + 0x14], 8
jb 0x403392
mov edi, dword [edi]
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0042a50b
add esp, 8
mov ecx, esi
push eax
call fcn.00402d90
lea ecx, [ebp - 0x28]
call fcn.0041a870
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042a28c
add esp, 8
mov byte [ebp - 4], 0xe
jmp 0x403411
add edi, 4
cmp dword [edi + 0x14], 8
jb 0x4033d8
mov edi, dword [edi]
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.0042a50b
add esp, 8
mov ecx, esi
push eax
call fcn.00402d90
lea ecx, [ebp - 0x28]
call fcn.0041a870
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042a28c
add esp, 8
mov byte [ebp - 4], 0xf
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00404800
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.0041a870
call fcn.00426a32
test al, al
je 0x403456
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 - 0xd8]
call fcn.0042659d
test al, al
je 0x403470
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 0x40347a
mov eax, dword [esi]
jmp 0x40347c
mov eax, esi
push eax
call fcn.004283b0
mov ebx, dword [ebp - 0xe0]
lea edi, [ebx + 0x4c]
lea eax, [ebx + 0x64]
push edi
push eax
call fcn.00402a00
add esp, 0xc
mov ecx, ebx
push esi
test al, al
jne 0x4034b8
push 0
call fcn.00403710
test eax, eax
setne al
mov byte [ebp - 0xd1], al
test al, al
jne 0x4034c8
push esi
mov ecx, ebx
push 1
call fcn.00403710
test eax, eax
setne byte [ebp - 0xd1]
cmp dword [esi + 0x14], 8
jb 0x4034d2
mov eax, dword [esi]
jmp 0x4034d4
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40360d
cmp byte [ebp - 0xd1], 0
je 0x40360d
cmp dword [ebp - 0xdc], 0
lea eax, [ebp - 0x40]
jne 0x403500
push 2
jmp 0x403502
push 3
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.004041d0
mov ecx, eax
call fcn.00416fc0
cmp dword [ebp - 0x48], 0
jne 0x4035c5
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.0042c06b
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x10
jb 0x40353e
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00426fcc
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00402d90
lea ecx, [ebp - 0x28]
call fcn.0041a870
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00402c40
cmp dword [ebp - 0x48], 0
jne 0x4035c5
lea eax, [ebx + 0x64]
push eax
push edi
call fcn.00402a40
add esp, 8
test al, al
je 0x4035c5
lea eax, [ebx + 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0042c06b
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x11
jb 0x40359b
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00426fcc
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00402d90
lea ecx, [ebp - 0x28]
call fcn.0041a870
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00402c40
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe8], esp
push esi
call fcn.00402b50
sub esp, 0x18
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x58]
mov dword [ebp - 0xe4], esp
mov ecx, esp
push eax
call fcn.00402b50
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
push edi
call fcn.00402b50
push dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 4], 9
call fcn.00404250
jmp 0x40362b
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 1
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.004041d0
mov ecx, eax
call fcn.00416fc0
xor esi, esi
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x403642
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00402500
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x48], 0
cmp eax, 8
jb 0x403674
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00402500
xor eax, eax
mov dword [ebp - 0x8c], 7
mov word [ebp - 0xa0], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x90], 0
cmp eax, 0x10
jb 0x4036a6
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404a40
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.0041a870
lea ecx, [ebp - 0xb8]
call fcn.0041a870
lea ecx, [ebp - 0xd0]
call fcn.0041a870
lea ecx, [ebp + 0xc]
call fcn.0041a870
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.0042578a
mov esp, ebp
pop ebp
ret 0x24