Function at 0x40a170
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x563ea2
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x5cb008]
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 - 0xd8], esi
mov edi, dword [ebp + 0x24]
lea ebx, [esi + 0x4c]
mov dword [ebp - 4], 0
lea eax, [ebp + 0xc]
cmp ebx, eax
je 0x40a1c6
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00407e50
lea ecx, [esi + 0x64]
cmp ecx, ebx
je 0x40a1d7
push 0xffffffffffffffff
push 0
push ebx
call fcn.00407e50
lea eax, [ebp - 0x28]
push str.19290311114229613900512721411717
push eax
call fcn.0041ea24
mov esi, eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 1
push str.58477523066419411364496655125430
push eax
call fcn.0041ea24
push esi
mov esi, dword [ebp - 0xd8]
push eax
add esi, 0x64
mov byte [ebp - 4], 2
push esi
call fcn.0041a5a1
mov eax, dword [ebp - 0x8c]
add esp, 0x1c
cmp eax, 8
jb 0x40a232
inc eax
lea ecx, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
call fcn.00408470
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 0x40a267
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408470
xor eax, eax
mov dword [ebp - 0xbc], 7
push eax
push 0x5c2948
lea ecx, [ebp - 0xd0]
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
call fcn.00407d50
xor eax, eax
mov byte [ebp - 4], 3
push eax
push 0x5c2948
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
call fcn.00407d50
mov byte [ebp - 4], 4
cmp dword [ebx + 0x14], 8
jb 0x40a2c9
mov eax, dword [ebx]
jmp 0x40a2cb
mov eax, ebx
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00423d19
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.00423caf
add esp, 0x10
mov dword [ebp - 0xdc], eax
lea ecx, [ebp - 0x58]
cmp ecx, eax
je 0x40a332
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x40a310
inc eax
push eax
push dword [ebp - 0x58]
call fcn.00408470
push dword [ebp - 0xdc]
xor eax, eax
mov dword [ebp - 0x44], 7
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
call fcn.00407f70
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40a34b
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00408470
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0041aae3
push 0
call fcn.00433866
mov dword [ebp - 0xe0], 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 dword [ebp - 0xdc], eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 9
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 0x40a3d7
mov eax, dword [ecx]
jmp 0x40a3d9
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
push edx
push ebx
mov word [eax], dx
call fcn.00407e50
push dword [ebp + 8]
mov ecx, dword [ebp - 0xd8]
call fcn.00409690
test al, al
je 0x40a640
cmp dword [ebp - 0xbc], 8
lea eax, [ebp - 0xd0]
mov dword [ebp - 0xdc], 1
cmovae eax, dword [ebp - 0xd0]
push eax
call fcn.00434865
mov ecx, dword [ebp - 0xd8]
add esp, 4
add eax, dword [ecx]
cmp eax, dword [ebp - 0xe0]
jl 0x40a450
lea eax, [ebp - 0x70]
cmp edi, eax
je 0x40a5ed
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00407e50
jmp 0x40a5ed
lea eax, [ebp - 0xa0]
push ebx
push eax
call fcn.0041aae3
add esp, 8
mov byte [ebp - 4], 0xa
cmp dword [eax + 0x14], 0x10
jb 0x40a46c
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004237b5
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.004079b0
lea ecx, [ebp - 0x28]
call fcn.00407970
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00407ad0
cmp dword [ebp - 0x30], 0
jne 0x40a4f5
mov edx, esi
mov ecx, ebx
call fcn.0040ae80
test al, al
je 0x40a4f5
lea eax, [ebp - 0xa0]
push esi
push eax
call fcn.0041aae3
add esp, 8
mov byte [ebp - 4], 0xb
cmp dword [eax + 0x14], 0x10
jb 0x40a4c8
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004237b5
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.004079b0
lea ecx, [ebp - 0x28]
call fcn.00407970
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00407ad0
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.00408cc0
add esp, 0x10
test eax, eax
jne 0x40a640
lea eax, [ebp - 0x70]
cmp edi, eax
je 0x40a53c
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00407e50
sub esp, 0x18
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 0x40a56d
mov eax, dword [ecx]
jmp 0x40a56f
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x70]
push edx
push eax
call fcn.00407e50
sub esp, 0x18
mov byte [ebp - 4], 0xc
mov ecx, esp
mov dword [ebp - 0xe0], 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 0x40a5b5
mov eax, dword [ecx]
jmp 0x40a5b7
mov eax, ecx
xor edx, edx
push 0xffffffffffffffff
mov word [eax], dx
lea eax, [ebp - 0x88]
push edx
push eax
call fcn.00407e50
sub esp, 0x18
mov byte [ebp - 4], 0xd
mov ecx, esp
push ebx
call fcn.00407a90
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xd8]
push eax
mov byte [ebp - 4], 9
call fcn.00409b50
cmp dword [ebp - 0xa4], 0x10
lea esi, [ebp - 0xb8]
mov eax, dword [0x5da178]
cmovae esi, dword [ebp - 0xb8]
test eax, eax
jne 0x40a629
push 0xac
call fcn.00414f98
add esp, 4
mov dword [ebp - 0xe4], eax
mov ecx, eax
call fcn.0040fc80
mov dword [0x5da178], eax
push 0
push esi
sub esp, 8
mov ecx, eax
call fcn.00410600
mov esi, 1
jmp 0x40a902
cmp dword [ebp + 0x28], 0
jne 0x40a657
push 0x5c2948
mov ecx, edi
call fcn.00407d00
jmp 0x40a900
cmp dword [edi + 0x10], 0
jne 0x40a710
mov eax, dword [ebp + 8]
test eax, eax
mov eax, dword [ebp - 0xd8]
je 0x40a6b4
add eax, 0x1c
cmp dword [eax + 0x14], 8
jb 0x40a679
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00423f26
add esp, 8
mov ecx, edi
push eax
call fcn.004079b0
lea ecx, [ebp - 0x28]
call fcn.00407970
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00423df4
add esp, 8
mov byte [ebp - 4], 0xe
jmp 0x40a6f8
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x40a6bf
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00423f26
add esp, 8
mov ecx, edi
push eax
call fcn.004079b0
lea ecx, [ebp - 0x28]
call fcn.00407970
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00423df4
add esp, 8
mov byte [ebp - 4], 0xf
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.0040acb0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 9
call fcn.00407970
cmp dword [edi + 0x14], 8
jb 0x40a71a
mov eax, dword [edi]
jmp 0x40a71c
mov eax, edi
push eax
call fcn.0041d3b1
add esp, 4
cmp dword [ebx + 0x14], 8
jb 0x40a72f
mov ecx, dword [ebx]
jmp 0x40a731
mov ecx, ebx
cmp dword [esi + 0x14], 8
jb 0x40a73b
mov eax, dword [esi]
jmp 0x40a73d
mov eax, esi
push dword [ebx + 0x10]
push ecx
push dword [esi + 0x10]
push eax
call fcn.00408cc0
mov ecx, dword [ebp - 0xd8]
add esp, 0x10
push edi
test eax, eax
je 0x40a775
push 0
call fcn.00409e40
test eax, eax
setne al
mov byte [ebp - 0xd1], al
test al, al
jne 0x40a785
mov ecx, dword [ebp - 0xd8]
push edi
push 1
call fcn.00409e40
test eax, eax
setne byte [ebp - 0xd1]
cmp dword [edi + 0x14], 8
jb 0x40a78f
mov eax, dword [edi]
jmp 0x40a791
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a8da
cmp byte [ebp - 0xd1], 0
je 0x40a8da
cmp dword [ebp - 0xdc], 0
lea eax, [ebp - 0xb8]
jne 0x40a7c0
push 2
jmp 0x40a7c2
push 3
cmp dword [ebp - 0xa4], 0x10
cmovae eax, dword [ebp - 0xb8]
push eax
sub esp, 8
call fcn.00408be0
mov ecx, eax
call fcn.00410600
cmp dword [ebp - 0x30], 0
jne 0x40a88e
lea eax, [ebp - 0xa0]
push ebx
push eax
call fcn.0041aae3
add esp, 8
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x14], 0x10
jb 0x40a806
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004237b5
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.004079b0
lea ecx, [ebp - 0x28]
call fcn.00407970
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00407ad0
cmp dword [ebp - 0x30], 0
jne 0x40a88e
mov edx, esi
mov ecx, ebx
call fcn.0040ae80
test al, al
je 0x40a88e
lea eax, [ebp - 0xa0]
push esi
push eax
call fcn.0041aae3
add esp, 8
mov ecx, eax
mov byte [ebp - 4], 0x11
call fcn.00407ac0
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004237b5
add esp, 8
lea ecx, [ebp - 0x40]
push eax
call fcn.004079b0
lea ecx, [ebp - 0x28]
call fcn.00407970
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.00407ad0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xe4], esp
push edi
call fcn.00407a90
sub esp, 0x18
mov byte [ebp - 4], 0x12
lea eax, [ebp - 0x40]
mov dword [ebp - 0xe0], esp
mov ecx, esp
push eax
call fcn.00407a90
sub esp, 0x18
mov byte [ebp - 4], 0x13
mov ecx, esp
push ebx
call fcn.00407a90
push dword [ebp + 8]
mov ecx, dword [ebp - 0xd8]
mov byte [ebp - 4], 9
call fcn.00409b50
jmp 0x40a900
cmp dword [ebp - 0xa4], 0x10
lea eax, [ebp - 0xb8]
push 1
cmovae eax, dword [ebp - 0xb8]
push eax
sub esp, 8
call fcn.00408be0
mov ecx, eax
call fcn.00410600
xor esi, esi
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40a917
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00408470
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 0x40a946
inc eax
lea ecx, [ebp - 0x88]
push eax
push dword [ebp - 0x88]
call fcn.00408470
xor eax, eax
mov dword [ebp - 0x74], 7
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0x78], 0
mov word [ebp - 0x88], ax
call fcn.00407ad0
mov eax, dword [ebp - 0x44]
cmp eax, 8
jb 0x40a97d
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00408470
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 0x40a9a6
inc eax
lea ecx, [ebp - 0x70]
push eax
push dword [ebp - 0x70]
call fcn.00408470
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 0x40a9d8
inc eax
lea ecx, [ebp - 0xd0]
push eax
push dword [ebp - 0xd0]
call fcn.00408470
xor eax, eax
mov dword [ebp - 0xbc], 7
lea ecx, [ebp + 0xc]
mov dword [ebp - 0xc0], 0
mov word [ebp - 0xd0], ax
call fcn.00407970
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.00414f82
mov esp, ebp
pop ebp
ret 0x24