Function at 0x40149f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 8
call fcn.00413e71
add esp, 4
mov dword [ebp - 4], eax
mov edi, eax
mov esi, 0x4402b7
lodsd eax, dword [esi]
stosd dword es:[edi], eax
lodsd eax, dword [esi]
stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0x80000004
push 0
lea eax, [ebp - 4]
push eax
push 1
mov ebx, 0x100
call fcn.004146e0
add esp, 0x10
push 1
lea eax, [ebp - 8]
push eax
push 0xffffffff
call fcn.00401c36
mov ebx, eax
test ebx, ebx
je 0x401522
push ebx
call fcn.00413e6b
add esp, 4
mov ebx, dword [ebp - 4]
call fcn.0040142f
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 1
jl 0x40166c
mov ebx, dword [ebp - 4]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
mov eax, 0
shl eax, 2
add ebx, eax
mov dword [ebp - 0x1c], ebx
push 0x80000301
push 0
push 2
push 1
mov ebx, 0x168
call fcn.00414340
add esp, 0x10
mov dword [ebp - 0x20], eax
push 1
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
call fcn.004055a8
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401591
push ebx
call fcn.00413e6b
add esp, 4
mov eax, dword [ebp - 0x24]
push eax
mov ebx, dword [0x445425]
test ebx, ebx
je 0x4015a8
push ebx
call fcn.00413e6b
add esp, 4
pop eax
mov dword [0x445425], eax
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
push 0x440284
push 0x80000004
push 0
mov eax, dword [0x445425]
test eax, eax
jne 0x4015e1
mov eax, 0x440283
push eax
push 4
mov ebx, 0x14c
call fcn.004148b0
add esp, 0x34
push 0x80000301
push 0
push eax
push 0x80000004
push 0
mov eax, dword [0x445425]
test eax, eax
jne 0x401611
mov eax, 0x440283
push eax
push 2
mov ebx, 0x134
call fcn.00414960
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [0x445429]
test ebx, ebx
je 0x40163e
push ebx
call fcn.00413e6b
add esp, 4
pop eax
mov dword [0x445429], eax
mov eax, dword [0x445429]
test eax, eax
je 0x401662
push eax
mov ebx, eax
call fcn.00401030
inc eax
push eax
call fcn.00413e71
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x401bab
push 0x80000301
push 0
push 9
push 1
mov ebx, 0x1c
mov eax, 0x41e6d0
call fcn.00414230
add esp, 0x10
mov dword [ebp - 0x1c], eax
call fcn.00405e7c
mov dword [ebp - 0x20], eax
push 0x80000004
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4016ad
mov eax, 0x440283
push eax
push 1
mov ebx, 0x198
call fcn.00414b60
add esp, 0x10
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4016d3
push ebx
call fcn.00413e6b
add esp, 4
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
push 1
push 1
lea eax, [ebp - 0x24]
push eax
call fcn.00405f2a
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x401702
push ebx
call fcn.00413e6b
add esp, 4
push 0x80000301
push 0
push 5
push 0x80000004
push 0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x401721
mov eax, 0x440283
push eax
push 2
mov ebx, 0x138
call fcn.00414c40
add esp, 0x1c
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x401747
push ebx
call fcn.00413e6b
add esp, 4
push 0x4402af
push dword [ebp - 0x30]
push 0x4402b4
push dword [ebp - 0x1c]
mov ecx, 4
call fcn.0040109b
add esp, 0x10
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x401777
push ebx
call fcn.00413e6b
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401787
push ebx
call fcn.00413e6b
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40179b
push ebx
call fcn.00413e6b
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x80000004
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4017b2
mov eax, 0x440283
push eax
push 1
mov ebx, 0x268
call fcn.00414cb0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4017dc
push ebx
call fcn.00413e6b
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 1
push 0xc8
push 1
push 0x64
call fcn.004066b7
mov dword [ebp - 0x14], eax
push 0x80000301
push 0
push dword [ebp - 0x14]
push 1
mov ebx, 0x1bc
call fcn.00414d20
add esp, 0x10
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
mov ecx, 2
call fcn.00401448
add esp, 8
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40183b
push ebx
call fcn.00413e6b
add esp, 4
push 0x80000005
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x40184e
mov eax, 0x4402b7
push eax
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x401862
mov eax, 0x440283
push eax
push 2
mov ebx, 0x26c
call fcn.00414d50
add esp, 0x1c
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x401885
push ebx
call fcn.00413e6b
add esp, 4
mov eax, 0x4402bf
test eax, eax
je 0x4018a1
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.00413e71
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4018b2
push ebx
call fcn.00413e6b
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebx]
inc ecx
shl ecx, 2
add ebx, ecx
push ebx
mov eax, dword [ebp - 0x14]
dec eax
pop ebx
add ebx, eax
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov byte [ebx], 0xff
push 0xa0000101
push 0
push 0x442885
push 1
mov ebx, 0x168
call fcn.00414340
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
push 1
push 0
push 0xe
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00406799
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40192d
push ebx
call fcn.00413e6b
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40193d
push ebx
call fcn.00413e6b
add esp, 4
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x40195f
push 6
call fcn.00413e7d
add esp, 4
test eax, eax
je 0x401abc
push 0x80000301
push 0
push 2
push 1
mov ebx, 0x168
call fcn.00414340
add esp, 0x10
mov dword [ebp - 0x1c], eax
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004079ad
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4019aa
push ebx
call fcn.00413e6b
add esp, 4
push dword [ebp - 0x20]
push 0x442899
push dword [ebp - 0xc]
mov ecx, 3
call fcn.0040109b
add esp, 0xc
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4019d5
push ebx
call fcn.00413e6b
add esp, 4
push 0
mov ebx, 0x104
call fcn.00414620
add esp, 4
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], 0
push 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
push 0x10
call fcn.00413e71
add esp, 4
mov dword [ebp - 0x34], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
push dword [ebp - 0x38]
mov dword [ebp - 0x3c], 0
push 0
push dword [ebp - 0x3c]
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040815d
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x401a70
push ebx
call fcn.00413e6b
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x401a80
push ebx
call fcn.00413e6b
add esp, 4
mov ebx, dword [ebp - 0x34]
push ebx
call fcn.00413e6b
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401a9c
push ebx
call fcn.00413e6b
add esp, 4
cmp dword [ebp - 0x40], 0
je 0x401abc
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
push 0xffffffff
call fcn.004105f4
mov eax, dword [ebp - 8]
test eax, eax
je 0x401ad8
push eax
mov ebx, eax
call fcn.00401030
inc eax
push eax
call fcn.00413e71
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [0x445425]
test ebx, ebx
je 0x401aec
push ebx
call fcn.00413e6b
add esp, 4
pop eax
mov dword [0x445425], eax
push 0x80000002
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
push 0x440284
push 0x80000004
push 0
mov eax, dword [0x445425]
test eax, eax
jne 0x401b25
mov eax, 0x440283
push eax
push 4
mov ebx, 0x14c
call fcn.004148b0
add esp, 0x34
push 0x80000301
push 0
push eax
push 0x80000004
push 0
mov eax, dword [0x445425]
test eax, eax
jne 0x401b55
mov eax, 0x440283
push eax
push 2
mov ebx, 0x134
call fcn.00414960
add esp, 0x1c
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [0x445429]
test ebx, ebx
je 0x401b82
push ebx
call fcn.00413e6b
add esp, 4
pop eax
mov dword [0x445429], eax
mov eax, dword [0x445429]
test eax, eax
je 0x401ba6
push eax
mov ebx, eax
call fcn.00401030
inc eax
push eax
call fcn.00413e71
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x401bab
push eax
mov ebx, dword [ebp - 4]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x401bca
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x401bc6
imul eax, dword [ebx]
jmp 0x401bbb
mov ecx, eax
test ecx, ecx
je 0x401be9
push ecx
mov eax, dword [ebx]
test eax, eax
je 0x401be2
push ebx
push eax
call fcn.00413e6b
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x401bd0
call fcn.00413e6b
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401c01
push ebx
call fcn.00413e6b
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x401c11
push ebx
call fcn.00413e6b
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x401c21
push ebx
call fcn.00413e6b
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x401c31
push ebx
call fcn.00413e6b
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret