Function at 0x40b773
Capabilities:
Set file attributes

Disassembly:
push 0xe8
mov eax, 0x47ebab
call fcn.00477fa0
push 0x401c
call fcn.0045d02c
mov esi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], fcn.0043c4af
mov dword [ebp - 0x28], 0x43c4a4
mov dword [ebp - 0x6c], fcn.0043c4af
mov dword [ebp - 0x68], 0x43c4a4
xor ebx, ebx
pop ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x50], ebx
mov dword [esi], 0x43c51c
mov dword [esi + 4], 0x43c56b
mov dword [esi + 8], 0x43c579
mov dword [esi + 0xc], 0x43c5c5
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
call fcn.0043c5fb
lea eax, [ebp - 0xf4]
call fcn.0043c703
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x2c]
push eax
mov edx, esi
lea ecx, [ebp - 0xf4]
call fcn.0043e4bf
mov edi, eax
pop ecx
pop ecx
mov dword [ebp + 8], edi
cmp edi, ebx
je 0x40b81b
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0xf4]
call fcn.0043c73e
xor edx, edx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0xb4], ebx
jbe 0x40b85d
mov ecx, dword [ebp - 0xb0]
mov eax, edx
shl eax, 3
mov edi, dword [eax + ecx + 8]
sub edi, dword [eax + ecx]
mov ebx, dword [eax + ecx + 0xc]
sbb ebx, dword [eax + ecx + 4]
add dword [ebp - 0x44], edi
adc dword [ebp - 0x40], ebx
inc edx
cmp edx, dword [ebp - 0xb4]
jb 0x40b83a
xor edi, edi
cmp dword [ebp + 8], edi
jne 0x40ba85
or dword [ebp - 0x64], 0xffffffff
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x70], edi
mov dword [ebp + 8], edi
cmp dword [ebp - 0xb4], edi
jbe 0x40ba75
mov ebx, dword [ebp - 0x80]
mov eax, dword [ebp - 0x9c]
sub eax, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp + 8]
and dword [ebp - 0x54], 0
and dword [ebp - 0x24], 0
mov edx, dword [ebp - 0xac]
mov edi, dword [ebx + 4]
and ecx, 7
mov eax, 0x80
sar eax, cl
mov ecx, dword [ebp + 8]
shr ecx, 3
push 0
test byte [ecx + edx], al
mov dword [ebp - 0x5c], eax
pop eax
setne al
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx]
sub edi, eax
cmp edi, dword [ebp - 0x50]
jbe 0x40b8f5
push dword [ebp - 0x1c]
call fcn.0045aabf
pop ecx
lea eax, [edi + edi]
push eax
push 0
mov dword [ebp - 0x50], edi
call fcn.0043c4af
pop ecx
pop ecx
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x40ba4d
push dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0xf4]
call fcn.0043e923
cmp dword [ebp - 0x4c], 0
pop ecx
jne 0x40b948
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 8]
lea ebx, [ebp - 0x20]
push esi
lea eax, [ebp - 0xf4]
call fcn.0043e7aa
add esp, 0x20
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x40ba75
mov ebx, dword [ebp - 0x48]
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
call fcn.00403b58
mov edi, dword [ebp + 0x10]
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
call fcn.00402ed6
cmp dword [ebp - 0x4c], 0
je 0x40b98a
push dword [ebp - 0x14]
mov ecx, edi
push dword [ebp + 0xc]
call fcn.0040b535
test eax, eax
jne 0x40ba02
mov dword [ebp - 0x18], 1
jmp 0x40ba66
push edi
mov edi, dword [ebp + 0xc]
push dword [ebp - 0x14]
mov ecx, edi
call fcn.0040b5d2
test eax, eax
je 0x40ba56
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x54]
add eax, ecx
mov ecx, dword [edi + 0x28]
cmp dword [ecx - 0xc], 0
je 0x40b9c4
push dword [ebp - 0x24]
mov edx, dword [edi]
push eax
mov ecx, edi
call dword [edx + 4]
test eax, eax
je 0x40ba5f
mov eax, dword [edi + 0x28]
cmp dword [eax - 0xc], 0
je 0x40b9d4
mov eax, edi
call fcn.004333a5
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x40ba02
mov cl, byte [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
test byte [edx + eax], cl
je 0x40ba02
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + ebx]
mov eax, edi
mov eax, dword [eax + 0x28]
cmp dword [eax - 0xc], 0
je 0x40ba02
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x24]
add dword [ebp - 0x3c], eax
push dword [ebp - 0x3c]
mov eax, dword [ebp + 0xc]
push dword [0x4a5e04]
adc dword [ebp - 0x38], 0
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00403c45
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add ebx, 4
mov dword [ebp - 0x48], ebx
cmp eax, dword [ebp - 0xb4]
jb 0x40b892
jmp 0x40ba75
mov dword [ebp - 0x30], 2
jmp 0x40ba75
mov dword [ebp - 0x18], 2
jmp 0x40ba66
mov dword [ebp - 0x18], 3
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00403c45
push dword [ebp - 0x20]
lea eax, [ebp - 0x2c]
push eax
call dword [ebp - 0x28]
pop ecx
pop ecx
xor edi, edi
jmp 0x40ba8c
mov dword [ebp - 0x18], 4
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0xf4]
call fcn.0043c73e
push dword [ebp - 0x1c]
call fcn.0045aabf
pop ecx
push esi
call fcn.0045a97a
pop ecx
mov ecx, dword [ebp - 0x30]
mov eax, ecx
sub eax, edi
je 0x40bac1
dec eax
dec eax
je 0x40bab8
dec eax
add ecx, 0x100
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
call fcn.0047803f
ret