Function at 0x40b760
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x444974
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
mov eax, dword [esp + 0xb4]
push ebx
push esi
mov esi, dword [esp + 0xa8]
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], ebx
jne 0x40b7a7
cmp esi, ebx
jne 0x40b7a7
xor al, al
jmp 0x40bc23
push ebp
lea ecx, [esp + 0x4c]
call fcn.0040d5a0
mov ebp, dword [esp + 0xac]
push ebp
lea eax, [esp + 0x50]
push eax
mov ecx, edi
mov dword [esp + 0xac], ebx
call fcn.0040a570
push esi
lea ecx, [esp + 0x14]
call fcn.00404280
mov eax, dword [esp + 0xb8]
test eax, eax
mov byte [esp + 0xa4], 1
jne 0x40b80a
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x50]
call fcn.0040dce0
mov eax, dword [eax]
mov ebx, 1
mov byte [esp + 0xa4], 2
mov dword [esp + 0x14], ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.00404280
test bl, 1
mov esi, 4
mov dword [esp + 0xa4], esi
je 0x40b84a
mov eax, dword [esp + 0x38]
and ebx, 0xfffffffe
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b84a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x447ae8
lea ecx, [esp + 0x14]
call fcn.0040b130
mov al, byte [esp + 0xb4]
test al, al
je 0x40b882
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040b3c0
add esp, 8
mov byte [esp + 0xa4], 5
or ebx, 2
jmp 0x40b8a1
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0040b4e0
add esp, 8
mov dword [esp + 0xa4], 6
or ebx, esi
push eax
lea ecx, [esp + 0x34]
push 0x447ae8
push ecx
mov dword [esp + 0x20], ebx
call fcn.00405ab0
add esp, 0xc
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0xac], 7
call fcn.004022a0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0xa4], 6
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b8f9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 4
mov dword [esp + 0xa4], 5
je 0x40b92e
mov eax, dword [esp + 0x34]
and ebx, 0xfffffffb
add eax, 0xfffffff0
mov dword [esp + 0x14], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b92e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 2
mov dword [esp + 0xa4], esi
je 0x40b958
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b958
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebp
mov ecx, edi
call fcn.0040a600
test al, al
je 0x40b9ec
mov eax, dword [esp + 0x10]
push eax
call fcn.0040b5e0
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
add esp, 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xa4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b9ab
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0xa4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b9d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa4], 0xffffffff
call fcn.0040d620
mov al, 1
jmp 0x40bc22
push ebp
mov ecx, edi
call fcn.0040ad60
test al, al
jne 0x40ba5f
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xa4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba1e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0xa4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ba44
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa4], 0xffffffff
call fcn.0040d620
xor al, al
jmp 0x40bc22
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040b280
mov eax, dword [eax]
push eax
mov byte [esp + 0xb0], 8
call fcn.0040b5e0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0xc
mov byte [esp + 0xa4], 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40baa7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
push 0x1021
push eax
lea ecx, [esp + 0x44]
call fcn.004367b9
mov ebx, dword [esp + 0xbc]
xor edi, edi
cmp ebx, edi
mov byte [esp + 0xa4], 9
je 0x40bade
lea ecx, [esp + 0x4c]
call fcn.0040d870
mov dword [esp + 0x14], eax
jmp 0x40bae2
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0xc4]
push edi
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040be90
mov ebp, dword [esp + 0xc0]
mov eax, dword [esp + 0x2c]
mov byte [esp + 0xa4], 0xa
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push eax
push edx
call fcn.0040a910
mov esi, eax
test esi, esi
je 0x40bb41
mov eax, dword [esp + 0x28]
push esi
push eax
lea ecx, [esp + 0x44]
call fcn.004360b4
add edi, esi
test ebx, ebx
je 0x40bb41
mov ecx, dword [esp + 0x14]
push ebp
push edi
push ecx
call ebx
add esp, 0xc
test al, al
je 0x40bb87
mov edx, dword [0x45c634]
mov eax, dword [edx + 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40bc3d
mov eax, dword [0x45c630]
add dword [eax + 0x5f4], esi
mov eax, dword [0x45c630]
mov ecx, dword [eax + 0x5f4]
push 0
push ecx
lea ecx, [eax + 0x580]
call fcn.00401990
mov eax, dword [esp + 0x2c]
cmp esi, eax
je 0x40bb07
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
call fcn.0040af20
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
lea ecx, [esp + 0x24]
inc bl
mov byte [esp + 0xa4], 9
call fcn.0040bec0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], 4
call fcn.004363a5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xa4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bbe6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0xa4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc0c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa4], 0xffffffff
call fcn.0040d620
mov al, bl
pop ebp
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x98
ret 0x1c
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x3c]
push edx
call fcn.0040af20
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 9
call fcn.0040bec0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], 4
call fcn.004363a5
jmp 0x40b985