Function at 0x1145170
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a4
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
cmp dword [esi + 0x25ab4], edi
jne 0x1145470
cmp dword [esi + 0x40b0], edi
jne 0x1145470
push ebx
lea ebx, [esi + 0x2b590]
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
cmp eax, 5
jge 0x114547a
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x11451ca
cmp dword [ebx], 3
jae 0x1145485
mov dword [ebp + 8], 0
test edi, edi
je 0x11451de
mov dword [ebp + 8], 1
jmp 0x1145236
lea ebx, [esi + 0x24908]
push ebx
call fcn.0102ee10
test eax, eax
je 0x1145236
mov eax, dword [esi + 0x240e4]
test eax, eax
je 0x1145230
cmp dword [eax + 0x58], 0
je 0x1145230
mov ecx, dword [eax + 0x88]
cmp dword [ecx + 0x20], 0x15
jne 0x1145228
cmp dword [ecx + 0x24], 0
jne 0x1145228
cmp dword [eax + 0xfc], 0
jne 0x1145228
push 1
push eax
mov dword [ebp + 8], 1
call fcn.010e7480
push 1
push esi
call fcn.010dadd0
push ebx
call fcn.0102ede0
xor eax, eax
cmp dword [esi + 0x240e4], eax
push 0
setne al
lea ecx, [ebp - 8]
lea edx, [esi + 0x2bd04]
push eax
push esi
push 0x106d3a0
push 0
push ecx
mov ecx, dword [esi + 8]
push edx
mov edx, dword [ecx]
lea eax, [esi + 0x2b598]
push eax
push edx
call fcn.010eaba0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1145438
cmp dword [ebp - 8], 0
je 0x1145438
push 0x20a
lea eax, [ebp - 0x2a4]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x82
lea ecx, [ebp - 0x98]
push 0
push ecx
call sub.msvcrt.dll_memset
add esp, 0x18
test edi, edi
je 0x11452b3
push 1
push esi
call fcn.0106d420
mov edx, dword [esi + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x2a0]
call ecx
push eax
push 0x101e2b0
lea edx, [ebp - 0x98]
push 0x3f
push edx
call fcn.0102c0d0
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x29c]
add esp, 0x10
lea edx, [ebp - 0x2a4]
push edx
push 0x103
call eax
push 0
lea ecx, [ebp - 0x2a4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
cmp word [ebp - 0x98], 0
lea eax, [ebp - 0x98]
je 0x114531a
add eax, 2
cmp word [eax], 0
jne 0x1145311
lea edx, [ebp - 0x98]
sub eax, edx
sar eax, 1
cmp word [ebp - 0x2a4], 0
mov ecx, eax
lea eax, [ebp - 0x2a4]
je 0x114533f
add eax, 2
cmp word [eax], 0
jne 0x1145336
lea edx, [ebp - 0x2a4]
sub eax, edx
sar eax, 1
add eax, eax
add ecx, ecx
mov ebx, eax
lea eax, [ebx + ecx + 2]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x114542f
inc eax
push eax
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edi, eax
test edi, edi
je 0x114542f
push ebx
lea eax, [ebp - 0x2a4]
push eax
push edi
call fcn.010295a0
add ebx, edi
je 0x114539c
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x98]
push edx
push ebx
call fcn.010295a0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [esi + 8]
push 0
push eax
mov eax, dword [edx]
push ecx
push edi
push eax
call fcn.01103af0
test eax, eax
je 0x1145429
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x11453c5
push 2
push esi
call fcn.0106d420
mov ecx, dword [esi + 8]
push 1
push 9
push ecx
mov dword [ebp + 0xc], 0
call fcn.010da690
mov ecx, dword [esi + 8]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp + 0xc]
push eax
push edi
push ecx
call fcn.010f3eb0
test eax, eax
je 0x114540a
cmp dword [ebp + 0xc], 0
je 0x114540a
test ebx, ebx
je 0x1145401
push 3
push esi
call fcn.0106d420
mov dword [ebp - 4], 1
jmp 0x1145429
cmp dword [ebp - 0xc], 0
jne 0x1145429
mov edx, dword [esi + 8]
push edi
push edx
call fcn.01142650
mov dword [ebp - 4], eax
test ebx, ebx
je 0x1145429
push 3
push esi
call fcn.0106d420
push edi
call fcn.0102d700
mov eax, dword [ebp - 8]
push eax
call fcn.0102d700
cmp dword [ebp + 8], 0
je 0x1145485
mov eax, dword [esi + 0x240e4]
test eax, eax
je 0x1145454
mov ecx, dword [eax + 0xf0]
push ecx
call fcn.010a0dd0
cmp dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
je 0x1145488
pop ebx
pop edi
mov dword [esi + 0x25ab4], 1
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8