Function at 0x40b770
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x444384
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 0x40b7b7
cmp esi, ebx
jne 0x40b7b7
xor al, al
jmp 0x40bc33
push ebp
lea ecx, [esp + 0x4c]
call fcn.0040d5b0
mov ebp, dword [esp + 0xac]
push ebp
lea eax, [esp + 0x50]
push eax
mov ecx, edi
mov dword [esp + 0xac], ebx
call fcn.0040a580
push esi
lea ecx, [esp + 0x14]
call fcn.004042b0
mov eax, dword [esp + 0xb8]
test eax, eax
mov byte [esp + 0xa4], 1
jne 0x40b81a
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x50]
call fcn.0040dcf0
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.004042b0
test bl, 1
mov esi, 4
mov dword [esp + 0xa4], esi
je 0x40b85a
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 0x40b85a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 0x447af8
lea ecx, [esp + 0x14]
call fcn.0040b140
mov al, byte [esp + 0xb4]
test al, al
je 0x40b892
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040b3d0
add esp, 8
mov byte [esp + 0xa4], 5
or ebx, 2
jmp 0x40b8b1
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.0040b4f0
add esp, 8
mov dword [esp + 0xa4], 6
or ebx, esi
push eax
lea ecx, [esp + 0x34]
push 0x447af8
push ecx
mov dword [esp + 0x20], ebx
call fcn.00405ac0
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.00402290
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 0x40b909
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 4
mov dword [esp + 0xa4], 5
je 0x40b93e
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 0x40b93e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, 2
mov dword [esp + 0xa4], esi
je 0x40b968
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 0x40b968
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebp
mov ecx, edi
call fcn.0040a610
test al, al
je 0x40b9fc
mov eax, dword [esp + 0x10]
push eax
call fcn.0040b5f0
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 0x40b9bb
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 0x40b9e1
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.0040d630
mov al, 1
jmp 0x40bc32
push ebp
mov ecx, edi
call fcn.0040ad70
test al, al
jne 0x40ba6f
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 0x40ba2e
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 0x40ba54
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.0040d630
xor al, al
jmp 0x40bc32
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040b290
mov eax, dword [eax]
push eax
mov byte [esp + 0xb0], 8
call fcn.0040b5f0
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 0x40bab7
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.004363a9
mov ebx, dword [esp + 0xbc]
xor edi, edi
cmp ebx, edi
mov byte [esp + 0xa4], 9
je 0x40baee
lea ecx, [esp + 0x4c]
call fcn.0040d880
mov dword [esp + 0x14], eax
jmp 0x40baf2
mov dword [esp + 0x14], edi
mov ecx, dword [esp + 0xc4]
push edi
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040bea0
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.0040a920
mov esi, eax
test esi, esi
je 0x40bb51
mov eax, dword [esp + 0x28]
push esi
push eax
lea ecx, [esp + 0x44]
call fcn.00435cd1
add edi, esi
test ebx, ebx
je 0x40bb51
mov ecx, dword [esp + 0x14]
push ebp
push edi
push ecx
call ebx
add esp, 0xc
test al, al
je 0x40bb97
mov edx, dword [0x45c634]
mov eax, dword [edx + 0x20]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40bc4d
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.004019c0
mov eax, dword [esp + 0x2c]
cmp esi, eax
je 0x40bb17
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
call fcn.0040af30
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
lea ecx, [esp + 0x24]
inc bl
mov byte [esp + 0xa4], 9
call fcn.0040bed0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], 4
call fcn.00435fbd
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 0x40bbf6
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 0x40bc1c
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.0040d630
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.0040af30
lea ecx, [esp + 0x24]
mov byte [esp + 0xa4], 9
call fcn.0040bed0
lea ecx, [esp + 0x3c]
mov byte [esp + 0xa4], 4
call fcn.00435fbd
jmp 0x40b995