Function at 0x114b820
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 0x114bb20
cmp dword [esi + 0x40b0], edi
jne 0x114bb20
push ebx
lea ebx, [esi + 0x2b590]
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
cmp eax, 5
jge 0x114bb2a
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x114b87a
cmp dword [ebx], 3
jae 0x114bb35
mov dword [ebp + 8], 0
test edi, edi
je 0x114b88e
mov dword [ebp + 8], 1
jmp 0x114b8e6
lea ebx, [esi + 0x24908]
push ebx
call fcn.010306f0
test eax, eax
je 0x114b8e6
mov eax, dword [esi + 0x240e4]
test eax, eax
je 0x114b8e0
cmp dword [eax + 0x58], 0
je 0x114b8e0
mov ecx, dword [eax + 0x88]
cmp dword [ecx + 0x20], 0x15
jne 0x114b8d8
cmp dword [ecx + 0x24], 0
jne 0x114b8d8
cmp dword [eax + 0xfc], 0
jne 0x114b8d8
push 1
push eax
mov dword [ebp + 8], 1
call fcn.010ec8f0
push 1
push esi
call fcn.010e0240
push ebx
call fcn.010306c0
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 0x1071ed0
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.010f0340
mov dword [ebp - 0x14], eax
test eax, eax
je 0x114bae8
cmp dword [ebp - 8], 0
je 0x114bae8
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 0x114b963
push 1
push esi
call fcn.01071f50
mov edx, dword [esi + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x2ac]
call ecx
push eax
push 0x101f330
lea edx, [ebp - 0x98]
push 0x3f
push edx
call fcn.0102d9e0
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov eax, dword [ecx + 0x2a8]
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 0x114b9ca
add eax, 2
cmp word [eax], 0
jne 0x114b9c1
lea edx, [ebp - 0x98]
sub eax, edx
sar eax, 1
cmp word [ebp - 0x2a4], 0
mov ecx, eax
lea eax, [ebp - 0x2a4]
je 0x114b9ef
add eax, 2
cmp word [eax], 0
jne 0x114b9e6
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 0x114badf
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 0x114badf
push ebx
lea eax, [ebp - 0x2a4]
push eax
push edi
call fcn.0102ad70
add ebx, edi
je 0x114ba4c
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x98]
push edx
push ebx
call fcn.0102ad70
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.01109970
test eax, eax
je 0x114bad9
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x114ba75
push 2
push esi
call fcn.01071f50
mov ecx, dword [esi + 8]
push 1
push 9
push ecx
mov dword [ebp + 0xc], 0
call fcn.010dfaf0
mov ecx, dword [esi + 8]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp + 0xc]
push eax
push edi
push ecx
call fcn.010f9bc0
test eax, eax
je 0x114baba
cmp dword [ebp + 0xc], 0
je 0x114baba
test ebx, ebx
je 0x114bab1
push 3
push esi
call fcn.01071f50
mov dword [ebp - 4], 1
jmp 0x114bad9
cmp dword [ebp - 0xc], 0
jne 0x114bad9
mov edx, dword [esi + 8]
push edi
push edx
call fcn.01146ed0
mov dword [ebp - 4], eax
test ebx, ebx
je 0x114bad9
push 3
push esi
call fcn.01071f50
push edi
call fcn.0102add0
mov eax, dword [ebp - 8]
push eax
call fcn.0102add0
cmp dword [ebp + 8], 0
je 0x114bb35
mov eax, dword [esi + 0x240e4]
test eax, eax
je 0x114bb04
mov ecx, dword [eax + 0xf0]
push ecx
call fcn.010a62b0
cmp dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
je 0x114bb38
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