Function at 0x403c40
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x447808
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 [0x4641b8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4641b8
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 0x403ca8
mov ecx, edi
lea eax, [esp + 0x14]
call fcn.00401fc0
mov esi, dword [esp + 0x14]
cmp dword [esi - 8], edi
jge 0x403cb7
push 0x80070057
call entry0
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 0x403cd0
sub eax, edx
js 0x403cad
cmp eax, dword [esi - 8]
jg 0x403cad
push 0x5c
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], bl
call fcn.004251f3
add esp, 8
cmp eax, ebx
jne 0x403cfc
or eax, 0xffffffff
jmp 0x403cfe
sub eax, esi
add eax, 1
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
call fcn.00401d60
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 0x403d41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 3
push 0x4557d0
lea ecx, [esp + 0x1c]
push ecx
call fcn.00402150
call fcn.00402390
test al, al
jne 0x403d6f
push str.....
push 0x4557d0
lea edx, [esp + 0x1c]
push edx
call fcn.00405960
push 1
push 0x4557d4
lea eax, [esp + 0x1c]
push eax
call fcn.00402150
mov ebp, dword [esp + 0x14]
push ecx
lea esi, [ebp - 0x10]
mov eax, esi
mov dword [esp + 0x20], esp
mov edi, esp
call fcn.00402010
add eax, 0x10
mov dword [edi], eax
call fcn.004032e0
add esp, 4
cmp eax, 1
je 0x403f20
mov edx, dword [0x4641b8]
mov eax, dword [edx + 0xc]
mov ecx, 0x4641b8
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push ebp
push str.cmd.exe__c_mkdir__s
lea edi, [esp + 0x20]
mov byte [esp + 0x30], 2
call fcn.004022a0
mov ebx, dword [esp + 0x20]
add esp, 4
add ebx, 0xfffffff0
mov eax, ebx
mov dword [esp + 0x20], esp
mov edi, esp
call fcn.00402010
add eax, 0x10
mov dword [edi], eax
call fcn.00402800
add esp, 4
test eax, eax
jne 0x403e52
mov byte [esp + 0x28], al
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403e1b
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [esp + 0x28], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403e3c
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
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 ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 2
jne 0x403e73
or eax, 2
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call fcn.00402390
test al, al
jne 0x403e90
push 0x4557d0
push str.....
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405960
push 0xd
push 0x4557ec
lea edx, [esp + 0x1c]
push edx
call fcn.00402150
mov eax, dword [esp + 0x14]
mov edi, dword [0x471d4c]
lea esi, [eax - 0x10]
add edi, 0xfffffff0
cmp esi, edi
je 0x403f02
cmp dword [edi + 0xc], 0
lea ebp, [edi + 0xc]
jl 0x403ef4
mov ecx, dword [esi]
cmp ecx, dword [edi]
jne 0x403ef4
mov eax, esi
call fcn.00402010
mov dword [esp + 0x1c], eax
or edx, 0xffffffff
lock xadd dword [ebp], edx
dec edx
test edx, edx
jg 0x403ee6
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov eax, dword [esp + 0x1c]
add eax, 0x10
mov dword [0x471d4c], eax
jmp 0x403f02
mov edi, dword [eax - 0xc]
push eax
mov eax, 0x471d4c
call fcn.00401f30
mov byte [esp + 0x28], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f20
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
mov dword [esp + 0x28], 0xffffffff
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x403f41
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
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