Function at 0x402fa0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58fc00
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x5f9e74]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [esi], 0
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
jne 0x402feb
xor ecx, ecx
jmp 0x402ff9
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402ff0
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00402140
push 4
push str..
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0
call fcn.004035e0
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x168]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call fcn.00572162
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
je 0x403121
lea eax, [ebp - 0x168]
push eax
push edi
call fcn.0057216d
add esp, 8
test eax, eax
jne 0x403236
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
nop dword [eax]
lea eax, [ebp - 0x144]
push 0x5d3574
push eax
call fcn.00571c3a
add esp, 8
test eax, eax
je 0x40321e
lea eax, [ebp - 0x144]
push 0x5d3578
push eax
call fcn.00571c3a
add esp, 8
test eax, eax
je 0x40321e
test byte [ebp - 0x168], 0x10
je 0x403156
cmp byte [esi], 0
jne 0x4030ae
xor ecx, ecx
jmp 0x4030bc
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4030b3
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.00402140
push 1
push 0x5d3568
lea ecx, [ebp - 0x40]
call fcn.004035e0
cmp byte [ebp - 0x144], 0
jne 0x4030e2
xor ecx, ecx
jmp 0x4030f9
lea ecx, [ebp - 0x144]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4030f0
sub ecx, edx
push ecx
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x40]
call fcn.004035e0
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
call fcn.00402fa0
test eax, eax
jne 0x40321e
xor esi, esi
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0x10
jb 0x403138
inc ecx
push ecx
push dword [ebp - 0x40]
lea ecx, [ebp - 0x40]
call fcn.004023e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00568e6a
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
jne 0x403171
xor ecx, ecx
jmp 0x40317f
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403176
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00402140
push 1
push 0x5d3568
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004035e0
cmp byte [ebp - 0x144], 0
jne 0x4031a9
xor ecx, ecx
jmp 0x4031bb
lea ecx, [ebp - 0x144]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4031b2
sub ecx, edx
push ecx
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x28]
call fcn.004035e0
mov ecx, dword [ebp - 0x168]
test cl, 1
je 0x4031ee
and ecx, 0xfffffffe
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 0x168], ecx
call ebx
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.005723df
add esp, 4
test eax, eax
jne 0x403255
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x40321e
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004023e0
lea eax, [ebp - 0x168]
push eax
push edi
call fcn.0057216d
add esp, 8
test eax, eax
je 0x403060
push edi
call fcn.0057213c
push esi
call fcn.00571b6a
add esp, 8
test eax, eax
jne 0x403121
lea esi, [eax + 1]
jmp 0x403123
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x403121
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.004023e0
jmp 0x403121