Function at 0x403a70
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x447088
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45cefc]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x4641d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4641d8
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
mov edi, 0x104
sub eax, edi
or eax, ecx
jge 0x403ad8
mov ecx, edi
lea eax, [esp + 0x14]
call fcn.00401fd0
mov esi, dword [esp + 0x14]
cmp dword [esi - 8], edi
jge 0x403ae7
push 0x80070057
call fcn.00401000
push edi
push esi
mov dword [esi - 0xc], edi
push ebx
mov byte [esi + 0x104], bl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403b00
sub eax, edx
js 0x403add
cmp eax, dword [esi - 8]
jg 0x403add
push 0x5c
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], bl
call fcn.00443d2c
add esp, 8
cmp eax, ebx
jne 0x403b2c
or eax, 0xffffffff
jmp 0x403b2e
sub eax, esi
add eax, 1
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
call fcn.00401d80
lea ebx, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.00401e50
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403b71
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 4
push str.....
lea ecx, [esp + 0x1c]
push ecx
call fcn.00402160
push 1
push 0x4557a4
lea edx, [esp + 0x1c]
push edx
call fcn.00402160
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmp eax, 1
je 0x403d15
mov eax, dword [0x4641d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4641d8
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
push esi
push str.cmd.exe__c_mkdir__s
lea edi, [esp + 0x20]
mov byte [esp + 0x30], 2
call fcn.004022b0
mov ebp, dword [esp + 0x20]
add esp, 4
add ebp, 0xfffffff0
mov eax, ebp
mov dword [esp + 0x20], esp
mov edi, esp
call fcn.00402020
add eax, 0x10
mov dword [edi], eax
call fcn.00402710
add esp, 4
test eax, eax
jne 0x403c51
mov byte [esp + 0x28], al
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403c17
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
add esi, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403c3b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 2
jne 0x403c72
or eax, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x4557a0
push str.....
lea eax, [esp + 0x1c]
push eax
call fcn.00405670
push 0xd
push 0x4557bc
lea ecx, [esp + 0x1c]
push ecx
call fcn.00402160
mov esi, dword [esp + 0x14]
mov edi, dword [0x471d64]
lea eax, [esi - 0x10]
add edi, 0xfffffff0
cmp eax, edi
je 0x403cf6
cmp dword [edi + 0xc], 0
lea ebx, [edi + 0xc]
jl 0x403ce8
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x403ce8
call fcn.00402020
mov dword [esp + 0x1c], eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x403cd9
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov ecx, dword [esp + 0x1c]
add ecx, 0x10
mov dword [0x471d64], ecx
jmp 0x403cf6
mov edi, dword [esi - 0xc]
push esi
mov eax, 0x471d64
call fcn.00401f30
mov byte [esp + 0x28], 0
lea edx, [ebp + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x403d15
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
add esi, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d39
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, 1
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret