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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1029255a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1dc
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0xd4]
call fcn.100b2470
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
push ecx
lea ecx, [ebp - 0x9c]
call fcn.1002c7c0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
call fcn.1012b9a0
mov ecx, dword [ebp - 0x18]
add ecx, 0x50
call fcn.1012b8a0
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
call fcn.1002c630
mov ecx, 0x10898400
call fcn.100970b0
lea ecx, [ebp - 0xc4]
call fcn.1002d040
mov byte [ebp - 4], 2
push 0x108ca120
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x1012aa6f
push 0x108ca120
lea ecx, [ebp - 0x1a0]
call fcn.1002cf20
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x40], edx
mov byte [ebp - 4], 3
push 0x102da404
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x188]
push ecx
call fcn.1002f3c0
add esp, 0xc
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
push edx
lea ecx, [ebp - 0xc4]
call fcn.1002ce40
lea ecx, [ebp - 0x188]
call fcn.10007c90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1a0]
call fcn.10007c90
push 0
lea ecx, [ebp - 0xc4]
call fcn.1002c970
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0xc4]
push eax
lea ecx, [ebp - 0x140]
call fcn.1012e7c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x140]
push ecx
lea ecx, [ebp - 0x90]
call fcn.10121720
mov byte [ebp - 4], 5
lea edx, [ebp - 0x90]
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x140]
call fcn.10013ca0
sub esp, 8
mov ecx, esp
mov dword [ebp - 0xac], esp
mov eax, dword [ebp - 0x28]
push eax
call fcn.1012ab90
lea ecx, [ebp - 0x38]
push ecx
call fcn.10121840
add esp, 0xc
mov dword [ebp - 0xa0], eax
mov byte [ebp - 4], 7
sub esp, 8
mov ecx, esp
mov dword [ebp - 0xa4], esp
mov edx, dword [ebp - 0x28]
push edx
call fcn.1012ab90
lea eax, [ebp - 0x88]
push eax
call fcn.101218b0
add esp, 0xc
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 8
jmp 0x1012a729
lea ecx, [ebp - 0x38]
call fcn.101217c0
lea ecx, [ebp - 0x88]
push ecx
lea ecx, [ebp - 0x38]
call fcn.10121800
movzx edx, al
test edx, edx
je 0x1012aa45
lea ecx, [ebp - 0x38]
call fcn.101217a0
mov dword [ebp - 0x24], eax
push 0
push 0x102da3fc
lea ecx, [ebp - 0x170]
call fcn.10130d60
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x24]
call fcn.100af560
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x1d0]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.10120990
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], edx
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x10]
or eax, 2
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x170]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.10120ac0
add esp, 8
movzx eax, al
test eax, eax
jne 0x1012a825
push 0
push str..luac
lea ecx, [ebp - 0x158]
call fcn.10130d60
mov dword [ebp - 4], 0xb
mov ecx, dword [ebp - 0x10]
or ecx, 4
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x24]
call fcn.100af560
mov dword [ebp - 0x54], eax
lea edx, [ebp - 0x1b8]
push edx
mov ecx, dword [ebp - 0x54]
call fcn.10120990
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x10]
or eax, 8
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x158]
push ecx
mov edx, dword [ebp - 0x58]
push edx
call fcn.10120ac0
add esp, 8
movzx eax, al
test eax, eax
jne 0x1012a825
mov dword [ebp - 0x2c], 0
jmp 0x1012a82c
mov dword [ebp - 0x2c], 1
mov cl, byte [ebp - 0x2c]
mov byte [ebp - 0x19], cl
mov edx, dword [ebp - 0x10]
and edx, 8
je 0x1012a849
and dword [ebp - 0x10], 0xfffffff7
lea ecx, [ebp - 0x1b8]
call fcn.10013ca0
mov dword [ebp - 4], 0xa
mov eax, dword [ebp - 0x10]
and eax, 4
je 0x1012a867
and dword [ebp - 0x10], 0xfffffffb
lea ecx, [ebp - 0x158]
call fcn.10013ca0
mov dword [ebp - 4], 9
mov ecx, dword [ebp - 0x10]
and ecx, 2
je 0x1012a885
and dword [ebp - 0x10], 0xfffffffd
lea ecx, [ebp - 0x1d0]
call fcn.10013ca0
mov dword [ebp - 4], 8
mov edx, dword [ebp - 0x10]
and edx, 1
je 0x1012a8a3
and dword [ebp - 0x10], 0xfffffffe
lea ecx, [ebp - 0x170]
call fcn.10013ca0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x1012aa40
mov ecx, dword [ebp - 0x24]
call fcn.100af560
push eax
lea ecx, [ebp - 0x110]
call fcn.10120b60
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x1e8]
push ecx
lea ecx, [ebp - 0x110]
call fcn.10120930
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], edx
mov byte [ebp - 4], 0xd
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x78], eax
lea ecx, [ebp - 0xf8]
push ecx
mov ecx, dword [ebp - 0x78]
call fcn.10120680
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x1e8]
call fcn.10013ca0
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x20], 0
jmp 0x1012a920
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
lea ecx, [ebp - 0x9c]
call fcn.1002c600
cmp dword [ebp - 0x20], eax
jae 0x1012a988
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x9c]
call fcn.1002c5c0
push eax
lea ecx, [ebp - 0xf8]
push ecx
call fcn.10035730
add esp, 8
movzx edx, al
test edx, edx
je 0x1012a986
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x20]
push ecx
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0xd4]
call fcn.1002c3f0
push eax
lea eax, [ebp - 0x120]
push eax
mov ecx, dword [ebp - 0x64]
call fcn.1012aab0
mov byte [ebp - 0x11], 1
jmp 0x1012a917
movzx ecx, byte [ebp - 0x11]
test ecx, ecx
jne 0x1012a9ad
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x68], edx
mov byte [ebp - 0x1a], 0
lea eax, [ebp - 0x1a]
push eax
lea ecx, [ebp - 0x128]
push ecx
mov ecx, dword [ebp - 0x68]
call fcn.1012aaf0
mov edx, dword [ebp - 0x18]
add edx, 0x50
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 0x6c]
call fcn.1012ab30
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
mov dword [ebp - 0x70], ecx
lea edx, [ebp - 0xf8]
push edx
mov ecx, dword [ebp - 0x70]
call fcn.10014420
mov eax, dword [ebp - 0x18]
add eax, 0x1c
mov dword [ebp - 0x7c], eax
lea ecx, [ebp - 0xe0]
call fcn.10010290
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x80], ecx
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x80]
push edx
mov ecx, dword [ebp - 0x7c]
call fcn.1012ab60
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0xe0]
call fcn.10032e70
mov eax, dword [ebp - 0x30]
add eax, 1
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0xf8]
call fcn.10007c90
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x110]
call fcn.10013ca0
jmp 0x1012a721
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x88]
call fcn.10121860
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x38]
call fcn.10121860
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x90]
call fcn.10121860
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc4]
call fcn.10007c90
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x9c]
call fcn.1002c730
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd4]
call fcn.1002dd20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret