Function at 0x40b760
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x418900
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx - 0xc]
lea eax, [ecx - 0xc]
xor ebx, ebx
cmp edx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], eax
jl 0x40b7a1
push eax
mov dword [esp + 0x14], ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x40b7b4
mov eax, dword [0x41d050]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], eax
call fcn.00403230
mov esi, 0x5c
push esi
push 0x2f
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 1
call fcn.00402f10
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
cmp word [ecx + eax*2 - 2], si
je 0x40b7ec
lea ecx, [esp + 0x14]
push ecx
push 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], esi
call fcn.00401a00
xor edi, edi
xor esi, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
mov ebp, dword [0x41d050]
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
mov byte [esp + 0x38], 3
jle 0x40b8b5
mov ebp, dword [esp + 0x40]
mov edi, edi
mov eax, dword [esp + 0x10]
movzx eax, word [eax + ebx*2]
cmp ax, 0x5c
je 0x40b839
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
push ecx
jmp 0x40b896
test edi, edi
je 0x40b870
mov ecx, dword [esp + 0x2c]
mov eax, esi
sub eax, edi
sub ecx, edi
sar eax, 2
sar ecx, 2
cmp eax, ecx
jae 0x40b870
push ebp
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
push 1
push esi
call fcn.0040a160
add esp, 0x14
add esi, 4
mov dword [esp + 0x28], esi
jmp 0x40b889
lea ecx, [esp + 0x14]
push ecx
push 1
push esi
lea ecx, [esp + 0x2c]
call fcn.0040a4e0
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x5c
push edx
lea ecx, [esp + 0x18]
push 1
call fcn.00401a00
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
inc ebx
cmp ebx, ecx
jl 0x40b820
mov ebp, dword [esp + 0x14]
cmp edi, esi
mov ebx, edi
je 0x40b8e5
jmp 0x40b8c0
mov eax, dword [ebx]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40b8de
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x40b986
add ebx, 4
cmp ebx, esi
jne 0x40b8c0
mov ecx, dword [0x41d054]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [ebp - 0xc]
cmp eax, ecx
je 0x40b90b
add ebp, 0xfffffff4
push ebp
call ebx
test eax, eax
jg 0x40b90b
push ebp
call fcn.0040f26f
add esp, 4
test edi, edi
je 0x40b929
mov ecx, dword [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
push edi
call fcn.00404380
push edi
call fcn.0040f26a
add esp, 0x14
mov esi, dword [esp + 0x10]
mov ecx, dword [0x41d054]
lea eax, [esi - 0xc]
cmp eax, ecx
je 0x40b94d
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x40b94d
push esi
call fcn.0040f26f
add esp, 4
mov ecx, dword [esp + 0x40]
mov eax, dword [0x41d054]
add ecx, 0xfffffff4
cmp ecx, eax
je 0x40b971
mov esi, dword [esp + 0x18]
push esi
call ebx
test eax, eax
jg 0x40b971
push esi
call fcn.0040f26f
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov eax, dword [0x41d054]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [ebp - 0xc]
cmp ecx, eax
je 0x40b9ab
add ebp, 0xfffffff4
push ebp
call ebx
test eax, eax
jg 0x40b9ab
push ebp
call fcn.0040f26f
add esp, 4
test edi, edi
je 0x40b9c9
mov edx, dword [esp + 0x40]
push edx
lea eax, [esp + 0x24]
push eax
push esi
push edi
call fcn.00404380
push edi
call fcn.0040f26a
add esp, 0x14
mov eax, dword [esp + 0x10]
mov edx, dword [0x41d054]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x40b9ed
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x40b9ed
push esi
call fcn.0040f26f
add esp, 4
mov edx, dword [esp + 0x40]
mov eax, dword [0x41d054]
add edx, 0xfffffff4
cmp edx, eax
je 0x40ba11
mov esi, dword [esp + 0x18]
push esi
call ebx
test eax, eax
jg 0x40ba11
push esi
call fcn.0040f26f
add esp, 4
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret