Function at 0x1004b24d
Capabilities:
Create directory

Disassembly:
push 0x2f4
mov eax, 0x1018a266
call fcn.10188e66
mov edi, ecx
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x284]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x284]
mov edx, 0x104
call fcn.1013d99d
mov esi, eax
test esi, esi
js 0x1004b57c
push ebx
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1004b2ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
je 0x1004b2ef
test esi, esi
jle 0x1004b2c0
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1004b2ef
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1004b5a4
test byte [eax + 0x44], 1
je 0x1004b5a4
push esi
push dword [eax + 0x3c]
mov edx, 0x1001db38
push dword [eax + 0x38]
push 0x21
jmp 0x1004b59e
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
mov esi, eax
test esi, esi
jns 0x1004b331
mov ecx, dword [0x101c33f0]
cmp ecx, 0x101c33f0
je 0x1004b5a4
test byte [ecx + 0x44], 1
je 0x1004b5a4
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001db38
push dword [ecx + 0x38]
push 0x22
jmp 0x1004b59e
push 0x32
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x2e4]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
jne 0x1004b37a
mov eax, dword [0x101c33f0]
mov esi, 0x8007000e
cmp eax, 0x101c33f0
je 0x1004b5a4
test byte [eax + 0x44], 1
je 0x1004b5a4
push esi
push dword [eax + 0x3c]
mov edx, 0x1001db38
push dword [eax + 0x38]
push 0x23
jmp 0x1004b59e
lea ecx, [ebp - 0x7c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1004b380
sub ecx, edx
sar ecx, 1
lea ecx, [ecx*2 - 2]
cmp ecx, 0x64
jae 0x1004b577
xor eax, eax
mov edx, 0x104
mov word [ebp + ecx - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
lea ecx, [ebp - 0x284]
call fcn.10045073
mov esi, eax
test esi, esi
jns 0x1004b3ef
mov ecx, dword [0x101c33f0]
cmp ecx, 0x101c33f0
je 0x1004b5a4
test byte [ecx + 0x44], 1
je 0x1004b5a4
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001db38
push dword [ecx + 0x38]
push 0x24
jmp 0x1004b59e
push ebx
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1004b443
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1004b416
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101c33f0]
cmp eax, 0x101c33f0
je 0x1004b5a4
test byte [eax + 0x44], 1
je 0x1004b5a4
push esi
push dword [eax + 0x3c]
mov edx, 0x1001db38
push dword [eax + 0x38]
push 0x25
jmp 0x1004b59e
lea eax, [ebp - 0x284]
mov dword [ebp - 0x29c], 0x100016c8
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x28c], eax
xor ebx, ebx
lea eax, [ebp - 0x2cc]
inc ebx
mov dword [ebp - 4], ebx
and dword [ebp - 0x2bc], 0
mov byte [ebp - 0x2d4], 0
mov dword [ebp - 0x300], eax
lea eax, [ebp - 0x29c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x2cc]
call fcn.10050020
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 5
call fcn.1004ffea
lea ecx, [ebp - 0x29c]
mov byte [ebp - 4], 6
call fcn.1004ffea
xor edx, edx
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.1004b03a
push 0x1001d56c
lea ecx, [ebp - 0x2b4]
call fcn.1005236c
xor esi, esi
mov byte [ebp - 4], 7
push esi
lea edx, [ebp - 0x2b4]
mov ecx, edi
call fcn.1006b2f2
push esi
push ebx
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 4
call fcn.10052803
lea eax, [ebp - 0x7a]
push eax
lea ecx, [ebp - 0x2fc]
call fcn.1005236c
push 0x1001d58c
lea ecx, [ebp - 0x2b4]
mov byte [ebp - 4], 8
call fcn.1005236c
push ebx
lea eax, [ebp - 0x2fc]
mov byte [ebp - 4], 9
push eax
lea edx, [ebp - 0x2b4]
mov ecx, edi
call fcn.1006b0f1
push esi
push ebx
lea ecx, [ebp - 0x2b4]
call fcn.10052803
push esi
push ebx
lea ecx, [ebp - 0x2fc]
mov byte [ebp - 4], 4
call fcn.10052803
push esi
or edx, 0xffffffff
mov ecx, edi
call fcn.1004b07e
mov byte [ebp - 0x2d4], bl
lea ecx, [ebp - 0x2d4]
call fcn.1004abc8
call fcn.10188e03
ret
call fcn.10188b5c
mov ecx, dword [0x101c33f0]
cmp ecx, 0x101c33f0
je 0x1004b5a4
test byte [ecx + 0x44], 1
je 0x1004b5a4
push esi
push dword [ecx + 0x3c]
mov edx, 0x1001db38
push dword [ecx + 0x38]
push 0x20
pop ecx
call fcn.1004a069
push esi
lea ecx, [ebp - 0x300]
call fcn.10044b9d
push 0x101c213c
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3