Function at 0x10eca30
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a0
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [esi + 0x24778], ebx
jne 0x10eccea
push edi
lea edi, [esi + 0x28348]
push edi
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
cmp eax, 5
jge 0x10eccf4
mov ebx, dword [ebp + 0xc]
test ebx, ebx
jne 0x10eca7b
cmp dword [edi], 3
jae 0x10eccde
mov dword [ebp + 8], 0
test ebx, ebx
je 0x10eca8f
mov dword [ebp + 8], 1
jmp 0x10ecae5
lea edi, [esi + 0x240e0]
test edi, edi
je 0x10ecae5
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 0x240cc]
test eax, eax
je 0x10ecadf
cmp dword [eax + 0x4c], 0
je 0x10ecadf
mov ecx, dword [eax + 0x7c]
cmp dword [ecx + 0x20], 0x15
jne 0x10ecad7
cmp dword [ecx + 0x24], 0
jne 0x10ecad7
cmp dword [eax + 0xec], 0
jne 0x10ecad7
push 1
push eax
mov dword [ebp + 8], 1
call fcn.010e7040
push 1
push esi
call fcn.010a62a0
push edi
call fcn.010219c0
xor eax, eax
cmp dword [esi + 0x240cc], eax
push 0
setne al
lea ecx, [ebp - 8]
lea edx, [esi + 0x28abc]
push eax
push esi
push 0x104eea0
push 0
push ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [ecx]
lea eax, [esi + 0x28350]
push eax
push edx
call fcn.0108b710
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10eccc2
cmp dword [ebp - 8], 0
je 0x10eccc2
push 0x20a
lea eax, [ebp - 0x2a0]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x82
lea ecx, [ebp - 0x94]
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0x18
test ebx, ebx
je 0x10ecb62
push 1
push esi
call fcn.0104ef30
mov edx, dword [esi + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x298]
call ecx
push eax
push 0x10172d4
lea edx, [ebp - 0x94]
push 0x3f
push edx
call fcn.0101e760
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x294]
add esp, 0x10
lea edx, [ebp - 0x2a0]
push edx
push 0x103
call eax
push 0
lea ecx, [ebp - 0x2a0]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
cmp word [ebp - 0x94], 0
lea eax, [ebp - 0x94]
je 0x10ecbc9
add eax, 2
cmp word [eax], 0
jne 0x10ecbc0
lea edx, [ebp - 0x94]
sub eax, edx
sar eax, 1
cmp word [ebp - 0x2a0], 0
mov ecx, eax
lea eax, [ebp - 0x2a0]
je 0x10ecbee
add eax, 2
cmp word [eax], 0
jne 0x10ecbe5
lea edx, [ebp - 0x2a0]
sub eax, edx
sar eax, 1
add eax, eax
add ecx, ecx
mov edi, eax
lea eax, [edi + ecx + 2]
mov dword [ebp - 0xc], ecx
test eax, eax
je 0x10eccb9
inc eax
push eax
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x10eccb9
push edi
lea eax, [ebp - 0x2a0]
push eax
push ebx
call fcn.0101c010
add edi, ebx
je 0x10ecc4b
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x94]
push edx
push edi
call fcn.0101c010
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, dword [esi + 8]
push 0
push eax
mov eax, dword [edx]
push ecx
push ebx
push eax
call fcn.010c8410
test eax, eax
je 0x10eccb3
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10ecc74
push 2
push esi
call fcn.0104ef30
mov ecx, dword [esi + 8]
push 1
push 9
push ecx
mov dword [ebp + 0xc], 0
call fcn.010a5880
mov eax, dword [esi + 8]
lea edx, [ebp + 0xc]
push edx
push ebx
push eax
call fcn.010b9db0
test eax, eax
je 0x10eccb3
cmp dword [ebp + 0xc], 0
je 0x10eccb3
test edi, edi
je 0x10eccac
push 3
push esi
call fcn.0104ef30
mov dword [ebp - 4], 1
push ebx
call fcn.010608a0
mov ecx, dword [ebp - 8]
push ecx
call fcn.010608a0
cmp dword [ebp + 8], 0
je 0x10eccde
mov esi, dword [esi + 0x240cc]
test esi, esi
je 0x10eccde
mov edx, dword [esi + 0xe0]
push edx
call fcn.01077160
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8