Function at 0x40b840
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x447b44
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 0x40b887
cmp esi, ebx
jne 0x40b887
xor al, al
jmp 0x40bd03
push ebp
lea ecx, [esp + 0x4c]
call fcn.0040d670
mov ebp, dword [esp + 0xac]
push ebp
lea eax, [esp + 0x50]
push eax
mov ecx, edi
mov dword [esp + 0xac], ebx
call fcn.0040a6f0
push esi
lea ecx, [esp + 0x14]
call fcn.00404200
mov eax, dword [esp + 0xb8]
test eax, eax
mov byte [esp + 0xa4], 1
jne 0x40b8ea
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x50]
call fcn.0040ddb0
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.00404200
test bl, 1
mov esi, 4
mov dword [esp + 0xa4], esi
je 0x40b92a
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 0x40b92a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x44b5d8
lea ecx, [esp + 0x14]
call fcn.0040b2b0
mov al, byte [esp + 0xb4]
test al, al
je 0x40b962
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040b4a0
add esp, 8
mov byte [esp + 0xa4], 5
or ebx, 2
jmp 0x40b981
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0040b5c0
add esp, 8
mov dword [esp + 0xa4], 6
or ebx, esi
push eax
lea ecx, [esp + 0x34]
push 0x44b5d8
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.00402390
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 0x40b9d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 4
mov dword [esp + 0xa4], 5
je 0x40ba0e
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 0x40ba0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 2
mov dword [esp + 0xa4], esi
je 0x40ba38
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 0x40ba38
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebp
mov ecx, edi
call fcn.0040a780
test al, al
je 0x40bacc
mov eax, dword [esp + 0x10]
push eax
call fcn.0040b6c0
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x14]
add esp, 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
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 0x40ba8b
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 0x40bab1
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.0040d6f0
mov al, 1
jmp 0x40bd02
push ebp
mov ecx, edi
call fcn.0040aec0
test al, al
jne 0x40bb3f
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 0x40bafe
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 0x40bb24
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.0040d6f0
xor al, al
jmp 0x40bd02
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040b360
mov eax, dword [eax]
push eax
mov byte [esp + 0xb0], 8
call fcn.0040b6c0
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 0x40bb87
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.00439b9c
mov ebx, dword [esp + 0xbc]
xor edi, edi
cmp ebx, edi
mov byte [esp + 0xa4], 9
je 0x40bbbe
lea ecx, [esp + 0x4c]
call fcn.0040d940
mov dword [esp + 0x14], eax
jmp 0x40bbc2
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0xc4]
push edi
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040bf70
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.0040aa70
mov esi, eax
test esi, esi
je 0x40bc21
mov eax, dword [esp + 0x28]
push esi
push eax
lea ecx, [esp + 0x44]
call fcn.00439493
add edi, esi
test ebx, ebx
je 0x40bc21
mov ecx, dword [esp + 0x14]
push ebp
push edi
push ecx
call ebx
add esp, 0xc
test al, al
je 0x40bc67
mov edx, dword [0x460b78]
mov eax, dword [edx + 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40bd1d
mov eax, dword [0x460b7c]
add dword [eax + 0x5f4], esi
mov eax, dword [0x460b7c]
mov ecx, dword [eax + 0x5f4]
push 0
push ecx
lea ecx, [eax + 0x580]
call fcn.004019a0
mov eax, dword [esp + 0x2c]
cmp esi, eax
je 0x40bbe7
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
call fcn.0040b080
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
lea ecx, [esp + 0x24]
inc bl
mov byte [esp + 0xa4], 9
call fcn.0040bfa0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], 4
call fcn.00439784
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 0x40bcc6
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 0x40bcec
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.0040d6f0
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.0040b080
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 9
call fcn.0040bfa0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], 4
call fcn.00439784
jmp 0x40ba65