Function at 0x40c980
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x437271
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x444e3c]
xor eax, esp
mov dword [esp + 0x154], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x444e3c]
xor eax, esp
push eax
lea eax, [esp + 0x16c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x17c]
push 0x12c
lea eax, [esp + 0x40]
push 0
push eax
mov dword [esp + 0x28], ecx
call fcn.00421410
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
push esi
lea ecx, [esp + 0x40]
push ecx
call ebx
lea ecx, [esp + 0x20]
call fcn.00417486
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x178], 0
call fcn.0040c8c0
mov ecx, dword [esp + 0x14]
mov esi, dword [ecx - 0xc]
lea eax, [esi - 1]
test eax, eax
mov byte [esp + 0x174], 1
jl 0x40cc25
cmp eax, esi
jg 0x40cc25
mov al, byte [eax + ecx]
cmp al, 0x5c
je 0x40ca75
mov eax, dword [ecx - 8]
mov edx, 1
sub edx, dword [ecx - 4]
lea edi, [esi + 1]
sub eax, edi
or eax, edx
jge 0x40ca51
push edi
lea ecx, [esp + 0x18]
call fcn.00402190
mov ecx, dword [esp + 0x14]
test edi, edi
mov byte [esi + ecx], 0x5c
jl 0x40cc25
mov eax, dword [esp + 0x14]
cmp edi, dword [eax - 8]
jg 0x40cc25
mov dword [eax - 0xc], edi
mov edx, dword [esp + 0x14]
mov byte [edi + edx], 0
push 0x43ad10
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.0040c7e0
add esp, 0xc
mov eax, dword [eax]
push 0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x17c], 2
call fcn.00417512
mov esi, eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x174], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cacc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x40cbb6
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
call edi
lea ecx, [esp + 0x20]
call fcn.00417184
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x24]
mov esi, eax
call fcn.004176c9
mov eax, dword [eax]
push eax
lea edx, [esp + 0x40]
push edx
call ebx
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 0x40cb27
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
call fcn.0041744d
test eax, eax
jne 0x40cb61
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [esp + 0x24]
call eax
test eax, eax
je 0x40cb61
push 0x80
lea ecx, [esp + 0x40]
push ecx
call ebp
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x3c]
push edx
call fcn.0040c980
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [esp + 0x24]
call edx
test eax, eax
jne 0x40cbae
push 0x80
lea eax, [esp + 0x40]
push eax
call ebp
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x24]
call fcn.004176c9
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cbae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40cae0
lea ecx, [esp + 0x20]
call fcn.004170b4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x174], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cbe7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x174], 0xffffffff
call fcn.004174aa
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x154]
xor ecx, esp
call fcn.004213c3
add esp, 0x164
ret 4
push 0x80070057
call fcn.00401090
int3