Function at 0x402870
Capabilities:
Check if file exists
Create directory
Create process on windows
Get file attributes
Set current directory

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x402fa0
push eax
mov dword fs:[0], esp
sub esp, 0xc4c
mov dword [ebp - 0x1c], 0
push esi
lea edx, [ebp - 0x230]
push edi
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
push 0x104
push edx
mov dword [ebp - 0x18], eax
push 0x46f
call dword [eax + 0xa8]
cmp dword [0x40f294], 0
lea ecx, [eax - 1]
jne 0x4028d5
imul ecx, dword [0x40f17c]
cmp byte [ebp + ecx - 0x230], 0x5c
jne 0x402914
jmp 0x4028e7
imul ecx, dword [0x40f17c]
cmp word [ebp + ecx - 0x230], 0x5c
jne 0x402914
cmp dword [0x40f294], 0
je 0x402904
dec eax
imul eax, dword [0x40f17c]
mov word [ebp + eax - 0x230], 0
jmp 0x402914
dec eax
imul eax, dword [0x40f17c]
mov byte [ebp + eax - 0x230], 0
push 1
lea eax, [ebp - 0x230]
push eax
call fcn.004053b0
add esp, 8
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
cmp byte [0x40d104], 6
jb 0x4029ea
cmp dword [0x40d104], 0x80000000
jae 0x4029ea
mov eax, dword [ebp - 0x14]
push eax
call fcn.00404aa0
add esp, 4
test eax, eax
je 0x4029ea
call fcn.00404a00
test eax, eax
jne 0x402995
push 1
mov ecx, dword [ebp - 0x10]
call fcn.00402660
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x10], eax
call fcn.00402faa
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xa4], 0
je 0x4029ea
mov eax, dword [eax + 0xac]
test eax, eax
je 0x4029ea
push eax
mov eax, dword [ebp - 0x14]
push eax
call dword [0x40f1b0]
test eax, eax
je 0x4029ea
push 0
push 0x40b3e4
push 0
push 0xa
call fcn.00404400
add esp, 8
mov ecx, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
call dword [eax + 0xdc]
mov dword [ebp - 4], 0xffffffff
call fcn.00402faa
xor eax, eax
jmp 0x402985
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402f6d
test al, 0x10
je 0x402f6d
push str.FastCopy.exe
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x640]
push ecx
call fcn.004046d0
add esp, 0xc
push 0x41
push 0x40b3dc
push 0
push 8
call fcn.00404400
add esp, 8
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
push eax
call dword [esi + 0xdc]
cmp eax, 1
je 0x402a6a
mov dword [ebp - 4], 0xffffffff
call fcn.00402faa
xor eax, eax
jmp 0x402985
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x98], 0
jne 0x402bb3
push 0x104
lea eax, [ebp - 0x438]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x438]
push ecx
push ecx
call fcn.00401cb0
add esp, 8
cmp dword [str.FastCopy.exe], 0
je 0x402bb3
mov esi, 0x40b118
mov eax, dword [esi]
lea ecx, [ebp - 0x438]
push eax
lea edx, [ebp - 0x334]
push ecx
push edx
call fcn.004046d0
add esp, 0xc
mov ecx, dword [esi]
lea edx, [ebp - 0x230]
lea eax, [ebp - 0x12c]
push ecx
push edx
push eax
call fcn.004046d0
add esp, 0xc
lea ecx, [ebp - 0x12c]
lea edx, [ebp - 0x334]
push ecx
push edx
call fcn.00402420
add esp, 8
test eax, eax
jne 0x402ba7
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x334]
push eax
push ecx
call fcn.004022d0
add esp, 8
test eax, eax
jne 0x402ba7
mov eax, dword [esi]
mov ecx, str.FastEx64.dll
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402b45
or dl, dl
je 0x402b41
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402b45
add eax, 2
add ecx, 2
or dl, dl
jne 0x402b25
xor eax, eax
jmp 0x402b4a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402b82
mov eax, dword [esi]
mov ecx, str.FastExt1.dll
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402b75
or dl, dl
je 0x402b71
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402b75
add eax, 2
add ecx, 2
or dl, dl
jne 0x402b55
xor eax, eax
jmp 0x402b7a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402d19
lea eax, [ebp - 0x12c]
lea ecx, [ebp - 0x334]
push eax
push ecx
call fcn.00402550
add esp, 8
test eax, eax
je 0x402d19
mov dword [ebp - 0x1c], 1
add esi, 4
cmp dword [esi], 0
jne 0x402ab0
push 1
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xb8]
push ecx
call fcn.004054b0
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x854], eax
push 1
mov edx, dword [ecx + 0xbc]
push edx
call fcn.004054b0
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], 0
mov edx, dword [ecx + 0x9c]
mov dword [ebp - 0x850], eax
mov eax, dword [ecx + 0xa0]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x84c], 0
cmp dword [ebp - 0x854], 0
mov dword [ebp - 0x24], eax
je 0x402dcd
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x2c]
mov ecx, 0xffffffff
mov edx, dword [ebp + eax - 0x854]
sub eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [ebp - 0x334]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [ebp - 0x2c], 0
jne 0x402c6a
lea eax, [ebp - 0x334]
mov ecx, dword [ebp - 0x10]
push eax
push edx
call fcn.004035f0
test eax, eax
jne 0x402c96
push str.FastCopy.lnk
lea edi, [ebp - 0x334]
push 0x40b3c8
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ecx + ebp - 0x335]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [ebp - 0x2c]
cmp dword [ebp + eax - 0x28], 0
je 0x402d6b
cmp dword [0x40f294], 0
je 0x402d4e
push 1
lea eax, [ebp - 0x640]
push eax
call fcn.00404930
add esp, 8
mov dword [ebp - 0x644], eax
mov byte [ebp - 4], 1
push 1
lea eax, [ebp - 0x334]
push eax
call fcn.00404930
add esp, 8
mov dword [ebp - 0xa54], eax
mov byte [ebp - 4], 2
push 0x40b180
mov eax, dword [ebp - 0xa54]
push eax
mov ecx, dword [ebp - 0x644]
push ecx
call fcn.00404ce0
mov byte [ebp - 4], 1
add esp, 0xc
call fcn.00402e95
mov byte [ebp - 4], 0
call fcn.00402ea0
jmp 0x402db8
push 0
push 0
push 7
call fcn.00404400
add esp, 8
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [esi + 0xdc]
mov dword [ebp - 4], 0xffffffff
call fcn.00402faa
xor eax, eax
jmp 0x402985
push 0x40b180
lea eax, [ebp - 0x334]
push eax
lea ecx, [ebp - 0x640]
push ecx
call fcn.00404ce0
add esp, 0xc
jmp 0x402db8
cmp dword [0x40f294], 0
je 0x402da9
push 1
lea eax, [ebp - 0x334]
push eax
call fcn.00404930
add esp, 8
mov dword [ebp - 0x338], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x338]
push eax
call fcn.00404e00
mov byte [ebp - 4], 0
add esp, 4
call fcn.00402eab
jmp 0x402db8
lea eax, [ebp - 0x334]
push eax
call fcn.00404e00
add esp, 4
add dword [ebp - 0x2c], 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp + eax - 0x854], 0
jne 0x402c21
cmp byte [0x40d104], 6
jb 0x402f03
cmp dword [0x40d104], 0x80000000
jae 0x402f03
mov eax, dword [ebp - 0x14]
push eax
call fcn.00404aa0
add esp, 4
test eax, eax
je 0x402f03
mov ax, word [0x40b180]
lea edi, [ebp - 0x846]
mov word [ebp - 0x848], ax
mov ecx, 0x81
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x40b180]
lea edi, [ebp - 0xc56]
mov word [ebp - 0xc58], ax
mov ecx, 0x81
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x40b180]
lea edi, [ebp - 0x53a]
mov word [ebp - 0x53c], ax
mov ecx, 0x81
xor eax, eax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0xa50]
push ecx
mov dword [ebp - 0x2c], eax
push edx
mov eax, dword [ebp - 0x14]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x402eb6
push eax
lea eax, [ebp - 0x53c]
push eax
call dword [0x40f158]
add esp, 8
jmp 0x402ee6
push 0
lea eax, [ebp - 0x848]
push 0x1a
push eax
push 0
call fcn.00404a40
add esp, 0x10
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x848]
lea edx, [ebp - 0x53c]
push eax
push ecx
push edx
call dword [0x40f2b4]
add esp, 0xc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x53c]
mov ecx, dword [eax + 0xb4]
mov eax, dword [ebp - 0x14]
push ecx
push edx
push eax
call fcn.00401450
add esp, 0xc
cmp dword [ebp - 0x1c], 1
sbb eax, eax
push 0x41
push 0x40b3dc
and eax, 0xfffffffa
push 0
add eax, 9
push eax
call fcn.00404400
add esp, 8
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
push eax
call dword [esi + 0xdc]
cmp eax, 1
jne 0x402f4f
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 5
lea ecx, [ebp - 0x640]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [ebp - 4], 0xffffffff
call fcn.00402faa
mov eax, 1
jmp 0x402985
push 0
push 0x40b3e4
push 0
push 6
call fcn.00404400
add esp, 8
mov ecx, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x18]
call dword [eax + 0xdc]
mov dword [ebp - 4], 0xffffffff
call fcn.00402faa
xor eax, eax
jmp 0x402985