Function at 0x40dc90
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x432d39
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x446050]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x6c]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebp
mov esi, ecx
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov dword [esp + 0x64], 1
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
xor edi, edi
add eax, edx
je 0x40de18
mov dword [esp + 0x14], ebx
cmp edi, eax
jb 0x40dd18
call fcn.00420164
mov eax, dword [esi + 0xc]
add eax, dword [esp + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x40dd2a
mov eax, dword [eax + 4]
jmp 0x40dd2d
add eax, 4
push eax
push 0x449080
push 0x436a34
lea ecx, [esp + 0x2c]
call fcn.004172c0
add esp, 0xc
mov byte [esp + 0x64], 2
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x48]
call fcn.004096e0
mov byte [esp + 0x64], 1
cmp dword [esp + 0x38], 0x10
jb 0x40dd6f
mov eax, dword [esp + 0x24]
push eax
call fcn.0042019e
add esp, 4
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
jae 0x40dd8e
lea eax, [esp + 0x40]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x40dda9
lea eax, [esp + 0x40]
push ebx
push ebx
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, ebx
je 0x40ddcd
cmp eax, 0xffffffff
je 0x40ddcd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ddf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
ja 0x40dde6
cmp eax, 0x20
jae 0x40de80
cmp eax, 5
jmp 0x40ddeb
cmp eax, 0x4c8
je 0x40de80
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
add dword [esp + 0x14], 0x1c
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
cmp edi, eax
jb 0x40dd18
push ebx
mov esi, 0xf
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
push 0x4364e7
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.00409e10
mov dword [esp + 0x18], 1
mov byte [esp + 0x64], bl
cmp dword [esp + 0x54], 0x10
jb 0x40de53
mov eax, dword [esp + 0x40]
push eax
call fcn.0042019e
add esp, 4
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov eax, ebp
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.0041f826
add esp, 0x54
ret
cmp dword [esp + 0x54], 0x10
mov ecx, dword [esp + 0x40]
jae 0x40de8f
lea ecx, [esp + 0x40]
push ecx
push str.Could_not_access__s
mov edi, eax
call fcn.0040d7c0
add esp, 8
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x44]
mov esi, 0xf
push ecx
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.004096e0
mov dword [esp + 0x18], 1
mov byte [esp + 0x64], bl
cmp dword [esp + 0x54], 0x10
jb 0x40de53
mov edx, dword [esp + 0x40]
push edx
jmp 0x40de4b