Function at 0x405cda
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x170
push ebx
mov ebx, dword [ebp + 0x18]
push esi
push edi
push dword [ebp + 0x1c]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405a9f
add esp, 0x10
test eax, eax
je 0x405d51
cmp byte [ebx], 0
je 0x405d51
cmp dword [ebp + 0x14], 0
je 0x405d1a
push ebx
call fcn.00405f3f
test eax, eax
pop ecx
je 0x405d51
jmp 0x405f37
lea eax, [ebp - 0x170]
push eax
push 0x104
call dword [str.PART]
test eax, eax
jbe 0x405d51
mov edi, dword [0x40209c]
push ebx
call edi
mov esi, eax
lea eax, [ebp - 0x170]
neg esi
sbb esi, esi
push eax
inc esi
call edi
test esi, esi
je 0x405f37
mov eax, dword [ebp + 0x1c]
dec eax
push eax
push ebx
call dword [0x402078]
test eax, eax
jbe 0x405d67
and byte [ebx + 2], 0
jmp 0x405d73
push 0x403108
push ebx
call dword [0x40206c]
and dword [ebp - 4], 0
lea eax, [ebp - 0x68]
push 0x64
push eax
mov ebx, 0x4021dc
push 0x4030f4
mov edi, 0x80000002
push ebx
push edi
call fcn.00405b32
mov esi, dword [0x402090]
add esp, 0x14
test eax, eax
je 0x405de5
push 0xd
lea eax, [ebp - 0x68]
push 0x4021cc
push eax
call fcn.004059d9
add esp, 0xc
test eax, eax
jne 0x405de5
lea eax, [ebp - 0x5b]
push 0x25
push eax
call fcn.00405825
pop ecx
test eax, eax
pop ecx
jne 0x405de5
lea eax, [ebp - 0x5b]
push eax
call esi
mov ecx, dword [ebp + 0x1c]
add ecx, 0xfffffffe
cmp eax, ecx
jge 0x405de5
lea eax, [ebp - 0x5b]
push eax
mov eax, dword [ebp + 0x18]
add eax, 2
push eax
jmp 0x405e27
lea eax, [ebp - 0x68]
push 0x64
push eax
push 0x4030e4
push ebx
push edi
call fcn.00405b32
add esp, 0x14
test eax, eax
je 0x405e34
cmp byte [ebp - 0x68], 0
je 0x405e34
lea eax, [ebp - 0x68]
push 0x25
push eax
call fcn.00405825
pop ecx
test eax, eax
pop ecx
jne 0x405e34
lea eax, [ebp - 0x68]
push eax
call esi
cmp eax, dword [ebp + 0x1c]
jge 0x405e34
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0x18]
call dword [0x40206c]
mov dword [ebp - 4], 1
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x405e42
push dword [ebp + 0x10]
call esi
mov edi, eax
push dword [0x4030b4]
call esi
push dword [0x4030b0]
mov ebx, eax
call esi
add edi, ebx
mov ebx, dword [ebp - 4]
cmp ebx, 1
lea edi, [eax + edi + 0xa]
jne 0x405e7f
push dword [ebp + 0x18]
call esi
dec eax
test eax, eax
jle 0x405e79
mov ecx, dword [ebp + 0x18]
add ecx, eax
cmp byte [ecx], 0x5c
jne 0x405e79
and byte [ecx], 0
lea edi, [edi + eax + 1]
jmp 0x405e89
push dword [0x4030ac]
call esi
add edi, eax
cmp edi, dword [ebp + 0x1c]
jg 0x405f20
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
cmp ebx, 3
jge 0x405edc
lea ebx, [ebx*4 + 0x4030ac]
push dword [ebx]
push dword [ebp + 0x18]
call esi
push 0
call edi
push 0
push dword [ebp + 0x18]
call dword [0x402094]
test eax, eax
jne 0x405ed1
call dword [sym.imp.USER32.dll_CharNextA]
cmp eax, 0xb7
jne 0x405f20
add ebx, 4
cmp ebx, 0x4030b8
jl 0x405eaa
cmp dword [ebp + 0x10], 0
je 0x405eea
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call esi
cmp dword [ebp + 0x14], 0
jne 0x405f24
push 0x4030e0
push dword [ebp + 0x18]
call esi
push 0
call edi
cmp dword [ebp + 0x10], 0
je 0x405f24
push 0
push dword [ebp + 0x18]
call dword [0x402094]
test eax, eax
jne 0x405f24
call dword [sym.imp.USER32.dll_CharNextA]
cmp eax, 0xb7
je 0x405f24
xor eax, eax
jmp 0x405f3a
push 0
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405bb7
add esp, 0x10
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret