Function at 0x4bbf00
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
push edi
push eax
lea ecx, [esp + 0xc]
call fcn.0043a930
mov edi, dword [esp + 8]
cmp dword [edi - 0xc], 0
jle 0x4bbf34
push 0x5c
push edi
call fcn.004d9a27
add esp, 8
test eax, eax
je 0x4bbf34
sub eax, edi
sar eax, 1
mov esi, eax
jns 0x4bbf58
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bbf50
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
push ebp
push esi
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x14]
call fcn.00456e80
mov ebp, dword [esp + 0x10]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4bbfb8
lea eax, [ebp - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4bbf93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bbfaf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret
push ebx
push 1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00476ae0
mov eax, dword [eax]
cmp dword [eax - 0xc], 1
jne 0x4bbfdb
cmp word [eax], 0x5c
jne 0x4bbfdb
xor bl, bl
jmp 0x4bbfdd
mov bl, 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4bbffd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4bc013
push 0x517394
lea ecx, [esp + 0x14]
call fcn.0043c910
mov edi, dword [esp + 0x10]
lea eax, [esi + 1]
test eax, eax
jl 0x4bc0cc
cmp eax, dword [edi - 0xc]
jge 0x4bc0cc
lea ecx, [edi + eax*2]
push 0x5c
push ecx
call fcn.004d9a27
add esp, 8
test eax, eax
je 0x4bc0cc
sub eax, edi
sar eax, 1
mov esi, eax
test esi, esi
jle 0x4bc0cc
mov ebx, dword [esp + 0x24]
nop
push esi
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x18]
call fcn.00456e80
push eax
lea ecx, [esp + 0x18]
call fcn.0043a540
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bc089
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4bc0a4
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4bc111
lea eax, [esi + 1]
test eax, eax
jl 0x4bc0cc
cmp eax, dword [edi - 0xc]
jge 0x4bc0cc
lea ecx, [edi + eax*2]
push 0x5c
push ecx
call fcn.004d9a27
add esp, 8
test eax, eax
je 0x4bc0cc
sub eax, edi
sar eax, 1
mov esi, eax
test esi, esi
jg 0x4bc050
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bc0e8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bc104
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
pop ebp
pop edi
mov eax, 1
pop esi
add esp, 0xc
ret
lea eax, [ebp - 0x10]
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4bc12d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bc149
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
add esp, 0xc
ret