Function at 0x403710
Capabilities:
Check if file exists
Create process on windows
Delete file
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x421d76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x468
mov eax, dword [0x42d9d0]
push ebx
push esi
push edi
xor eax, ebp
push 2
mov dword [esp + 0x470], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push eax
call fcn.004096c0
mov esi, eax
add esp, 0xc
cmp esi, ebx
mov dword [esp + 0x14], esi
je 0x403a2c
lea eax, [esp + 0x20]
push eax
push 0xffffffffffffffff
push esi
call fcn.004076c0
mov eax, dword [esp + 0x2c]
add esp, 0xc
cmp eax, 1
mov dword [esp + 0x1c], eax
jl 0x403a21
lea ecx, [esp + 0x258]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x104
lea edx, [esp + 0x364]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x360]
push eax
lea ecx, [esp + 0x14]
call fcn.00403610
mov ecx, dword [esp + 0x10]
push 0x5c
push ecx
mov dword [esp + 0x484], ebx
call fcn.0040b078
mov ecx, dword [esp + 0x18]
add esp, 8
cmp eax, ebx
jne 0x4037dd
or esi, 0xffffffff
jmp 0x4037e1
sub eax, ecx
mov esi, eax
push 0x2e
push ecx
call fcn.0040b078
add esp, 8
cmp eax, ebx
jne 0x4037f5
or eax, 0xffffffff
jmp 0x4037f9
sub eax, dword [esp + 0x10]
sub eax, esi
push eax
push esi
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1c]
call fcn.004027e0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x480], 1
call fcn.004029b0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x47c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403843
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x25c]
push ecx
call fcn.004075c0
mov eax, dword [esp + 0x18]
add esp, 8
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403860
lea edi, [esp + 0x258]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403871
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x258]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403891
mov eax, dword [esp + 0x1c]
test eax, eax
mov dx, word [0x423ed0]
mov word [edi], dx
mov dword [esp + 0x18], ebx
jle 0x4039d9
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ebx
push ecx
call fcn.004076c0
add esp, 0xc
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x150]
rep stosd dword es:[edi], eax
jmp 0x4038e0
mov cl, byte [esp + eax + 0x258]
mov byte [esp + eax + 0x150], cl
inc eax
test cl, cl
jne 0x4038e0
lea eax, [esp + 0x24]
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403900
lea edi, [esp + 0x150]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403911
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x150]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40397b
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x40395a
push 0
push 1
push 0x423eb0
call fcn.0041eae2
cmp eax, 1
jne 0x4039cb
mov dword [esp + 0x18], eax
push 0x80
lea eax, [esp + 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x150]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
push 2
push 0
lea edx, [esp + 0x158]
push edx
push ebx
push eax
call fcn.00409730
add esp, 0x14
test eax, eax
je 0x4039a9
push 0
push 0x30
push 0x423ea0
call fcn.0041eae2
jmp 0x4039bc
push 0x80
lea ecx, [esp + 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x4038b3
jmp 0x4039d9
push 0
push 0
push 0x423ea0
call fcn.0041eae2
push 5
push 0
push 0
lea edx, [esp + 0x264]
push edx
push str.explore
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x47c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403a1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x14]
push esi
call fcn.00409780
add esp, 4
jmp 0x403a38
push ebx
push ebx
push 0x423e80
call fcn.0041eae2
mov ecx, dword [esp + 0x474]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x46c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a861
mov esp, ebp
pop ebp
ret 4