Function at 0x409c30
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5aa5b6
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x63a188]
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 esi, ecx
mov dword [ebp - 0xe4], esi
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0xdc], ebx
lea edi, [esi + 0x4c]
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
mov dword [ebp - 0xe0], edi
cmp edi, eax
je 0x409c92
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00408100
lea eax, [esi + 0x64]
mov dword [ebp - 0xd8], eax
cmp eax, edi
je 0x409cab
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00408100
lea eax, [ebp - 0x28]
push str.51391424056128321237591758114545
push eax
call fcn.004368d4
mov esi, eax
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 1
push str.85398143036704401167665368184529
push eax
call fcn.004368d4
push esi
push eax
push dword [ebp - 0xd8]
mov byte [ebp - 4], 2
call fcn.0043a769
mov eax, dword [ebp - 0x5c]
add esp, 0x1c
cmp eax, 8
jb 0x409cf6
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00408370
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 0x409d22
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408370
call fcn.0043576f
test al, al
je 0x409d4e
push esi
pop esi
pop esp
pop ebp
pop ebp
push esp
pop ebx
push ecx
pop edx
push ebp
push esp
pop edx
push edx
pop esi
push esi
pop esp
push esp
pop ecx
pop ecx
push ebp
pop edx
pop ecx
pop ebp
pop ecx
pop esi
pop ecx
pop eax
pop esi
pop ecx
mov ebx, dword [ebp - 0xdc]
xor eax, eax
mov dword [ebp - 0xbc], 7
push eax
push 0x5b0700
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
call fcn.00408220
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x5b0700
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0xa8], 0
mov word [ebp - 0xb8], ax
call fcn.00408220
cmp dword [edi + 0x14], 8
mov byte [ebp - 4], 4
jb 0x409dbc
mov eax, dword [edi]
jmp 0x409dbe
mov eax, edi
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.004390e4
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.0043902f
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x88]
cmp eax, esi
je 0x409e37
mov eax, dword [ebp - 0x74]
cmp eax, 8
jb 0x409e14
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00408370
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.00407840
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 5
cmp eax, 8
jb 0x409e50
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408370
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.004433fe
push 0
call fcn.004553f8
mov dword [ebp - 0xdc], 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 - 0xd8], eax
call fcn.0043576f
test al, al
je 0x409ec5
push eax
pop ebp
pop edi
push ebx
pop ebp
pop esp
pop ebp
pop ebp
push edx
pop ebp
push edx
pop ecx
push edi
push edx
pop eax
push ebp
push edx
mov edi, dword [ebp - 0xe0]
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 0x409f05
mov eax, dword [ecx]
jmp 0x409f07
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push edi
mov word [eax], dx
call fcn.00408100
push dword [ebp + 8]
mov esi, dword [ebp - 0xe4]
mov ecx, esi
call fcn.0040a810
test al, al
je 0x40a0c6
cmp dword [ebp - 0xbc], 8
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xd8], 1
cmovae eax, dword [ebp - 0xd0]
push eax
call fcn.00455325
add eax, dword [esi]
add esp, 4
cmp eax, dword [ebp - 0xdc]
jl 0x409f7d
lea eax, [ebp - 0xb8]
cmp ebx, eax
je 0x40a09e
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00408100
jmp 0x40a09e
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.004433fe
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xa
jb 0x409f96
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00436055
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00409b60
lea ecx, [ebp - 0x28]
call fcn.00420480
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00403290
cmp dword [ebp - 0x48], 0
jne 0x40a01d
lea eax, [esi + 0x64]
push eax
push edi
call fcn.00409850
add esp, 8
test al, al
je 0x40a01d
lea eax, [esi + 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004433fe
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0xb
jb 0x409ff3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00436055
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00409b60
lea ecx, [ebp - 0x28]
call fcn.00420480
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00403290
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00409810
add esp, 8
test al, al
je 0x40a0c6
lea eax, [ebp - 0xb8]
cmp ebx, eax
je 0x40a04e
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00408100
sub esp, 0x18
lea eax, [ebp - 0xb8]
mov ecx, esp
mov dword [ebp - 0xe8], esp
push eax
call fcn.00409960
sub esp, 0x18
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xdc], esp
mov ecx, esp
push eax
call fcn.00409960
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
push edi
call fcn.00409960
mov eax, dword [ebp + 8]
mov ecx, esi
push eax
mov byte [ebp - 4], 9
call fcn.0040af40
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.0040aec0
mov ecx, eax
call fcn.0041cd30
mov esi, 1
jmp 0x40a375
cmp dword [ebp + 0x28], 0
jne 0x40a0dd
push 0x5b0700
mov ecx, ebx
call fcn.00409be0
jmp 0x40a373
cmp dword [ebx + 0x10], 0
jne 0x40a190
mov eax, dword [ebp + 8]
test eax, eax
je 0x40a134
cmp dword [esi + 0x30], 8
lea eax, [esi + 0x1c]
jb 0x40a0f9
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00439587
add esp, 8
mov ecx, ebx
push eax
call fcn.00409b60
lea ecx, [ebp - 0x28]
call fcn.00420480
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0043928b
add esp, 8
mov byte [ebp - 4], 0xe
jmp 0x40a178
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x40a13f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00439587
add esp, 8
mov ecx, ebx
push eax
call fcn.00409b60
lea ecx, [ebp - 0x28]
call fcn.00420480
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0043928b
add esp, 8
mov byte [ebp - 4], 0xf
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00407c90
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00420480
call fcn.00435997
test al, al
je 0x40a1c1
push ebp
pop edx
pop esi
push eax
push ecx
push edi
pop edi
pop esi
pop edx
pop ecx
pop ecx
pop esp
push edx
push esi
push edi
pop edi
pop ebp
pop eax
push esp
push edi
pop esi
push ecx
push ebx
push ebx
push edx
pop edx
push ebx
push ebp
mov edi, dword [ebp - 0xe0]
mov esi, dword [ebp - 0xe4]
cmp dword [ebx + 0x14], 8
jb 0x40a1cb
mov eax, dword [ebx]
jmp 0x40a1cd
mov eax, ebx
push eax
call fcn.00437203
lea eax, [esi + 0x64]
push edi
push eax
call fcn.00409810
add esp, 0xc
mov ecx, esi
push ebx
test al, al
jne 0x40a200
push 0
call fcn.0040a450
test eax, eax
setne al
mov byte [ebp - 0xd1], al
test al, al
jne 0x40a210
push ebx
mov ecx, esi
push 1
call fcn.0040a450
test eax, eax
setne byte [ebp - 0xd1]
cmp dword [ebx + 0x14], 8
jb 0x40a21a
mov eax, dword [ebx]
jmp 0x40a21c
mov eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a355
cmp byte [ebp - 0xd1], 0
je 0x40a355
cmp dword [ebp - 0xd8], 0
lea eax, [ebp - 0x40]
jne 0x40a248
push 2
jmp 0x40a24a
push 3
cmp dword [ebp - 0x2c], 0x10
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.0040aec0
mov ecx, eax
call fcn.0041cd30
cmp dword [ebp - 0x48], 0
jne 0x40a30d
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.004433fe
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x10
jb 0x40a286
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00436055
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00409b60
lea ecx, [ebp - 0x28]
call fcn.00420480
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00403290
cmp dword [ebp - 0x48], 0
jne 0x40a30d
lea eax, [esi + 0x64]
push eax
push edi
call fcn.00409850
add esp, 8
test al, al
je 0x40a30d
lea eax, [esi + 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.004433fe
add esp, 8
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 0x11
jb 0x40a2e3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00436055
add esp, 8
lea ecx, [ebp - 0x58]
push eax
call fcn.00409b60
lea ecx, [ebp - 0x28]
call fcn.00420480
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 9
call fcn.00403290
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe8], esp
push ebx
call fcn.00409960
sub esp, 0x18
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x58]
mov dword [ebp - 0xdc], esp
mov ecx, esp
push eax
call fcn.00409960
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
push edi
call fcn.00409960
push dword [ebp + 8]
mov ecx, esi
mov byte [ebp - 4], 9
call fcn.0040af40
jmp 0x40a373
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 1
cmovae eax, dword [ebp - 0x40]
push eax
push 1
push 1
call fcn.0040aec0
mov ecx, eax
call fcn.0041cd30
xor esi, esi
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x40a38a
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00408370
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 0x40a3bc
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00408370
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 0x40a3ee
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00408320
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
call fcn.00420480
lea ecx, [ebp - 0xb8]
call fcn.00420480
lea ecx, [ebp - 0xd0]
call fcn.00420480
lea ecx, [ebp + 0xc]
call fcn.00420480
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.004315db
mov esp, ebp
pop ebp
ret 0x24