Function at 0x40b1a0
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
push esp
pop ebp
push 0xffffffffffffffff
push 0x424230
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x42c520]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
sub edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x40b393
push ecx
pop eax
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x40b1e0
sub eax, esi
sar eax, 1
je 0x40b393
lea eax, [ebp - 0x20]
push eax
call fcn.00406960
mov byte [ebp - 4], 1
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
mov dword [ebp - 0x24], edi
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov byte [ebp - 4], 2
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
mov ecx, section..data
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
push 0x428b60
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x24]
call fcn.0040d020
mov byte [ebp - 4], 4
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea ebx, [esi - 0x10]
cmp eax, ebx
je 0x40b2a2
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jl 0x40b292
mov edx, dword [eax]
cmp edx, dword [ebx]
jne 0x40b292
call fcn.00409df0
push eax
pop edi
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
or eax, eax
jg 0x40b28a
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
lea esi, [edi + 0x10]
mov dword [ebp - 0x1c], esi
jmp 0x40b2a2
mov ebx, dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00406d90
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 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
or ecx, ecx
jg 0x40b2cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x40b32d
mov eax, dword [esi - 0xc]
push eax
push esi
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x18], 1
call fcn.00406c70
push 1
push 0x428b60
call fcn.00406c70
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
or eax, eax
jne 0x40b239
mov edx, dword [ebp - 0x14]
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x40b3a8
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x40b3a8
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 0x40b350
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
or edx, edx
jg 0x40b370
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
or edx, edx
jg 0x40b393
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
sub eax, eax
je 0x40b239
mov eax, dword [ebp - 0x14]
push 2
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
jmp 0x40b239