Function at 0x401c00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 8], 0
mov dword [ebp - 0x28], 0x64
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
xor ecx, ecx
mov ecx, dword [ebp + 8]
mov dword [0x40216c], ecx
mov dword [0x40219c], 0
mov dword [0x40218c], 0xffffffff
push 1
call fcn.00401630
add esp, 4
test eax, eax
jne 0x401c60
mov eax, 0x7c
jmp 0x401e71
push str.GetProcessHeap
mov eax, dword [0x402178]
push eax
call fcn.00401060
add esp, 8
mov dword [0x402188], eax
call dword [0x402188]
mov dword [0x40219c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
je 0x401c99
xor eax, eax
jmp 0x401e71
mov ecx, dword [0x40218c]
push ecx
call fcn.00401b90
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.00401bc0
add esp, 4
mov dword [0x402170], eax
mov eax, dword [str.gsvcgt]
mov byte [eax], 0x6d
mov ecx, dword [str.gsvcgt]
mov byte [ecx + 4], 0x72
mov edx, dword [str.gsvcgt]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4021ac], eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [0x402170]
push ecx
call fcn.00401080
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x10]
jae 0x401d5d
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.00401830
add esp, 8
mov dword [0x40217c], eax
mov eax, dword [0x40217c]
push eax
mov ecx, dword [0x40218c]
add ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [0x402170]
add edx, dword [ebp - 4]
push edx
call fcn.00401420
add esp, 0xc
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x28]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x24]
sub edx, dword [0x40217c]
mov dword [ebp - 0x24], edx
jmp 0x401cfb
cmp dword [0x40219c], 0
je 0x401ddd
mov dword [ebp - 8], 0
jmp 0x401d78
mov eax, dword [ebp - 8]
add eax, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x10]
jae 0x401ddd
cmp dword [0x40219c], 0
je 0x401da2
mov edx, dword [0x402170]
add edx, dword [ebp - 8]
mov eax, dword [edx]
add eax, dword [ebp - 8]
mov ecx, dword [0x402170]
add ecx, dword [ebp - 8]
mov dword [ecx], eax
cmp dword [0x40219c], 0
je 0x401db7
mov edx, dword [ebp - 8]
push edx
call fcn.00401160
add esp, 4
cmp dword [0x40219c], 0
je 0x401ddb
mov eax, dword [0x402170]
add eax, dword [ebp - 8]
mov ecx, dword [eax]
xor ecx, dword [0x4021a8]
mov edx, dword [0x402170]
add edx, dword [ebp - 8]
mov dword [edx], ecx
jmp 0x401d6f
mov dword [0x40215c], ebp
mov dword [0x402150], edi
xor ecx, ecx
mov dword [0x402148], esi
xor ecx, ecx
mov dword [0x402168], ebx
mov dword [0x402194], 0x18
call fcn.00401140
mov ecx, 0x4264872
lea ecx, [0x401e33]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
sub eax, dword [0x40216c]
mov dword [0x402164], eax
mov ecx, dword [0x402164]
push ecx
call fcn.00401550
add esp, 4
mov edx, dword [0x402170]
push edx
call fcn.00401860
test eax, eax
jne 0x401e47
xor eax, eax
jmp 0x401e71
mov esp, dword [0x40215c]
add esp, 4
cmp dword [0x402174], 0
je 0x401e62
mov eax, dword [0x402140]
mov dword [esp + 4], eax
call fcn.00401ba0
mov edx, dword [0x402198]
push edx
ret
mov esp, ebp
pop ebp
ret