Function at 0x11497c0
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 0x1149ac0
cmp dword [esi + 0x40b0], edi
jne 0x1149ac0
push ebx
lea ebx, [esi + 0x2b590]
push ebx
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
cmp eax, 5
jge 0x1149aca
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x114981a
cmp dword [ebx], 3
jae 0x1149ad5
mov dword [ebp + 8], 0
test edi, edi
je 0x114982e
mov dword [ebp + 8], 1
jmp 0x1149886
lea ebx, [esi + 0x24908]
push ebx
call fcn.0102ff30
test eax, eax
je 0x1149886
mov eax, dword [esi + 0x240e4]
test eax, eax
je 0x1149880
cmp dword [eax + 0x58], 0
je 0x1149880
mov ecx, dword [eax + 0x88]
cmp dword [ecx + 0x20], 0x15
jne 0x1149878
cmp dword [ecx + 0x24], 0
jne 0x1149878
cmp dword [eax + 0xfc], 0
jne 0x1149878
push 1
push eax
mov dword [ebp + 8], 1
call fcn.010eb330
push 1
push esi
call fcn.010dec70
push ebx
call fcn.0102ff00
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 0x1071510
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.010eed60
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1149a88
cmp dword [ebp - 8], 0
je 0x1149a88
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 0x1149903
push 1
push esi
call fcn.01071590
mov edx, dword [esi + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax + 0x2a0]
call ecx
push eax
push 0x101f098
lea edx, [ebp - 0x98]
push 0x3f
push edx
call fcn.0102d240
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 0x114996a
add eax, 2
cmp word [eax], 0
jne 0x1149961
lea edx, [ebp - 0x98]
sub eax, edx
sar eax, 1
cmp word [ebp - 0x2a4], 0
mov ecx, eax
lea eax, [ebp - 0x2a4]
je 0x114998f
add eax, 2
cmp word [eax], 0
jne 0x1149986
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 0x1149a7f
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 0x1149a7f
push ebx
lea eax, [ebp - 0x2a4]
push eax
push edi
call fcn.0102a680
add ebx, edi
je 0x11499ec
mov ecx, dword [ebp - 0x10]
push ecx
lea edx, [ebp - 0x98]
push edx
push ebx
call fcn.0102a680
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.01107de0
test eax, eax
je 0x1149a79
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x1149a15
push 2
push esi
call fcn.01071590
mov ecx, dword [esi + 8]
push 1
push 9
push ecx
mov dword [ebp + 0xc], 0
call fcn.010de530
mov ecx, dword [esi + 8]
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp + 0xc]
push eax
push edi
push ecx
call fcn.010f8190
test eax, eax
je 0x1149a5a
cmp dword [ebp + 0xc], 0
je 0x1149a5a
test ebx, ebx
je 0x1149a51
push 3
push esi
call fcn.01071590
mov dword [ebp - 4], 1
jmp 0x1149a79
cmp dword [ebp - 0xc], 0
jne 0x1149a79
mov edx, dword [esi + 8]
push edi
push edx
call fcn.01144e70
mov dword [ebp - 4], eax
test ebx, ebx
je 0x1149a79
push 3
push esi
call fcn.01071590
push edi
call fcn.01083050
mov eax, dword [ebp - 8]
push eax
call fcn.01083050
cmp dword [ebp + 8], 0
je 0x1149ad5
mov eax, dword [esi + 0x240e4]
test eax, eax
je 0x1149aa4
mov ecx, dword [eax + 0xf0]
push ecx
call fcn.010a5370
cmp dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
je 0x1149ad8
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