Function at 0x4bf5a0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 8]
push ebx
push esi
add eax, 0xfffffff0
push edi
push eax
call fcn.004626b0
mov edi, eax
mov ecx, dword [edi + 4]
add edi, 0x10
lea eax, [ecx - 1]
xor ebx, ebx
add esp, 4
cmp eax, ebx
mov dword [ebp - 0xc], edi
jl 0x4bf78b
cmp eax, ecx
jg 0x4bf78b
cmp word [edi + eax*2], 0x5c
je 0x4bf5ec
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.004a7eb0
mov edi, dword [ebp - 0xc]
push 4
call fcn.004eb0f9
add esp, 4
cmp eax, ebx
je 0x4bf604
lea ecx, [ebp - 0x2c]
mov dword [eax], ecx
mov dword [ebp - 0x2c], eax
jmp 0x4bf607
mov dword [ebp - 0x2c], ebx
mov edx, dword [0x5427f0]
mov eax, dword [edx + 0xc]
mov ecx, 0x5427f0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call eax
mov esi, eax
mov eax, dword [edi - 0xc]
add esi, 0x10
xor ecx, ecx
cmp eax, ebx
mov dword [ebp - 8], esi
mov byte [ebp - 1], bl
mov dword [ebp - 0x10], ecx
jg 0x4bf6c5
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
cmp edi, eax
jbe 0x4bf64d
call fcn.004eaba2
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x20], eax
jbe 0x4bf65d
call fcn.004eaba2
test ebx, ebx
je 0x4bf666
cmp ebx, dword [ebp - 0x2c]
je 0x4bf66b
call fcn.004eaba2
cmp edi, dword [ebp - 0x14]
je 0x4bf7a3
test ebx, ebx
jne 0x4bf795
call fcn.004eaba2
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4bf68d
call fcn.004eaba2
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne byte [ebp - 1]
test ebx, ebx
jne 0x4bf79c
call fcn.004eaba2
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x4bf6b7
call fcn.004eaba2
mov eax, dword [ebp - 0x1c]
add edi, 4
jmp 0x4bf650
mov edi, dword [ebp - 0xc]
xor ebx, ebx
cmp ecx, ebx
jl 0x4bf78b
cmp ecx, eax
jg 0x4bf78b
movzx eax, word [edi + ecx*2]
cmp ax, 0x5c
je 0x4bf727
mov ebx, dword [esi - 0xc]
movzx edx, ax
mov dword [ebp - 0x14], edx
mov edx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
lea edi, [ebx + 1]
sub edx, edi
or eax, edx
jge 0x4bf70b
push edi
lea ecx, [ebp - 8]
call fcn.00462660
mov esi, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
mov ax, word [ebp - 0x14]
mov word [esi + ebx*2], ax
test edi, edi
jl 0x4bf78b
cmp edi, dword [esi - 8]
jg 0x4bf78b
xor edx, edx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], dx
jmp 0x4bf774
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.004bf520
mov ebx, dword [esi - 0xc]
mov edx, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
lea edi, [ebx + 1]
sub edx, edi
or ecx, edx
jge 0x4bf756
push edi
lea ecx, [ebp - 8]
call fcn.00462660
mov esi, dword [ebp - 8]
mov eax, 0x5c
mov word [esi + ebx*2], ax
test edi, edi
jl 0x4bf78b
cmp edi, dword [esi - 8]
jg 0x4bf78b
xor ecx, ecx
mov dword [esi - 0xc], edi
mov word [esi + edi*2], cx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx - 0xc]
inc ecx
cmp ecx, eax
mov dword [ebp - 0x10], ecx
jl 0x4bf6c0
jmp 0x4bf63b
push 0x80070057
call fcn.0045f890
mov eax, dword [ebx]
jmp 0x4bf683
mov eax, dword [ebx]
jmp 0x4bf6ad
add esi, 0xfffffff0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4bf7bf
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4bf801
mov eax, dword [ebp - 0x1c]
mov edi, eax
cmp esi, eax
je 0x4bf7f8
nop
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bf7ee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add esi, 4
cmp esi, edi
jne 0x4bf7d0
mov esi, dword [ebp - 0x20]
push esi
call fcn.004ea481
add esp, 4
mov ecx, dword [ebp - 0x2c]
xor eax, eax
push ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
call fcn.004ea481
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
pop esi
pop ebx
test ecx, ecx
jg 0x4bf83a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bf859
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret