Function at 0x40b010
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432e50
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x43b4a0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x40b21b
mov eax, ecx
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x40b050
sub eax, esi
sar eax, 1
je 0x40b21b
lea eax, [ebp - 0x20]
push eax
call fcn.004043c0
mov byte [ebp - 4], 1
mov edx, dword [0x43b008]
mov eax, dword [edx + 0xc]
mov ecx, 0x43b008
mov dword [ebp - 0x24], edi
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 2
mov edx, dword [0x43b008]
mov eax, dword [edx + 0xc]
mov ecx, 0x43b008
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
push 0x43789c
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
call fcn.0040d010
mov byte [ebp - 4], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x40b112
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x40b102
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40b102
call fcn.0040a7d0
mov edi, eax
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x40b0fa
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add edi, 0x10
mov dword [ebp - 0x1c], edi
jmp 0x40b112
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00404690
mov edi, dword [ebp - 0x1c]
cmp dword [edi - 0xc], 0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x28]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40b13c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40b1b5
mov eax, dword [edi - 0xc]
push eax
push edi
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x18], 1
call fcn.004045d0
push 1
push 0x43789c
call fcn.004045d0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x40b0a9
push str.CreateDirectoryW
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b19d
mov edx, dword [ebp - 0x14]
push 0
push edx
call eax
test eax, eax
jne 0x40b230
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b230
mov dword [ebp - 0x18], 0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b1d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b1f8
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b21b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
je 0x40b0a9
mov eax, dword [ebp - 0x14]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x40b0a9