Function at 0x401150
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x40e0c3
mov eax, dword fs:[0]
push eax
sub esp, 0x2ac
mov eax, dword [0x413020]
xor eax, esp
mov dword [esp + 0x2a8], eax
push ebx
push ebp
push esi
mov eax, dword [0x413020]
xor eax, esp
push eax
lea eax, [esp + 0x2bc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2cc]
xor esi, esi
mov dword [esp + 0x2c4], esi
mov eax, 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], edi
test byte [0x414c54], al
jne 0x4011d9
or dword [0x414c54], eax
mov eax, dword [0x41405c]
mov edx, dword [eax + 0xc]
mov ecx, 0x41405c
call edx
add eax, 0x10
push 0x40e240
mov dword [0x414c50], eax
call fcn.00403659
add esp, 4
mov eax, dword [0x414c50]
mov eax, dword [eax - 0xc]
cmp eax, esi
jne 0x4013c0
lea ecx, [esp + 0xac]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
jle 0x4013c0
lea eax, [esp + 0xac]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x401210
sub eax, edx
sar eax, 1
lea edx, [esp + 0xac]
mov ebx, eax
push edx
mov eax, 0x414c50
call fcn.00401ff0
push 0xb
push str.RootGenius_
push 0x414c50
call fcn.00402100
mov eax, dword [0x414c50]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor ebx, ebx
push ebx
push eax
call esi
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.Data_
call fcn.00401bd0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x2cc], 1
call fcn.00401c80
mov eax, dword [eax]
add esp, 8
push ebx
push eax
call esi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4012a7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c4], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4012ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.DataApk
call fcn.00401bd0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x2cc], 2
call fcn.00401c80
mov eax, dword [eax]
add esp, 8
push ebx
push eax
call esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401320
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c4], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401347
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.DataBin
call fcn.00401bd0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x2cc], 3
call fcn.00401c80
mov eax, dword [eax]
add esp, 8
push ebx
push eax
call esi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401399
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2c4], bl
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4013c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
mov ebx, ebp
call fcn.00401d40
add esp, 4
mov dword [esp + 0x2c4], 0
mov eax, dword [edi]
push 3
lea ecx, [esp + 0x30]
push eax
lea eax, [esp + 0x30]
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], ecx
call fcn.00401f30
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x2c]
cmp eax, ecx
je 0x401414
push eax
call fcn.00403829
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x2bc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2a8]
xor ecx, esp
call fcn.00403523
add esp, 0x2b8
ret