Function at 0x1002b330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x10206f54]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x68], 0
jne 0x1002b35c
mov eax, dword [esi + 0x4088]
add eax, dword [esi + 0x84]
je 0x1002b361
mov eax, 1
mov dword [esi + 0x8560], eax
call fcn.1000c440
test eax, eax
jne 0x1002b4f4
mov edi, dword [esi + 0x85c8]
mov ebx, dword [esi + 0x7c]
lea eax, [edi + 0x1c]
push eax
mov eax, dword [ebx + 0x28]
push ebx
call eax
lea eax, [edi - 0x2000]
mov dword [edi + 4], 0
mov dword [edi + 0x10], eax
add esp, 8
mov dword [edi + 0x14], eax
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0xffffdfff
mov dword [edi + 0x18], ebx
mov eax, dword [esi + 0x85fc]
test eax, eax
je 0x1002b5d2
shl eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esi + 0x8868], eax
test eax, eax
je 0x1002b4f4
mov ecx, dword [esi + 0x85fc]
shl ecx, 2
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword [esi + 0x6c]
add esp, 0xc
imul eax, dword [esi + 0x861c]
imul eax, dword [esi + 0x8620]
cmp eax, 0x4000000
jb 0x1002b43a
mov eax, dword [esi + 0x85fc]
shl eax, 2
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [esi + 0x886c], eax
test eax, eax
je 0x1002b4f4
mov ecx, dword [esi + 0x85fc]
shl ecx, 2
push ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x10c], eax
cmp dword [esi + 0x85fc], eax
jbe 0x1002b5d2
nop
lea ebx, [eax*4]
mov eax, dword [esi + 0x8620]
imul eax, dword [esi + 0x861c]
imul eax, dword [esi + 0x6c]
cmp eax, 0x4000000
jb 0x1002b508
push 0x104
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ecx, dword [esi + 0x886c]
add esp, 4
mov dword [ebx + ecx], eax
mov eax, dword [esi + 0x886c]
mov edi, dword [ebx + eax]
test edi, edi
je 0x1002b4f4
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1002b4f4
cmp eax, 0x104
jae 0x1002b4f4
mov eax, dword [esi + 0x886c]
push dword [eax + ebx]
lea eax, [ebp - 0x108]
push 0
push 0x101f2458
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x1002b4f4
mov eax, dword [esi + 0x8868]
push 0x101f245c
add eax, ebx
push edi
push eax
call fcn.1000bff0
add esp, 0xc
test eax, eax
je 0x1002b570
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.101a8b60
mov esp, ebp
pop ebp
ret
mov edi, dword [esi + 0x8868]
push 0x1030
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov dword [edi + ebx], eax
test eax, eax
je 0x1002b4f4
lea ecx, [eax + 0x30]
mov dword [eax], ecx
mov dword [ecx - 4], 0
mov dword [eax + 4], 0x1000
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x14], 0x1000c160
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0x1000c1b0
mov dword [eax + 0x20], 0x1000c260
mov dword [eax + 0x24], 0x1000c330
mov dword [eax + 0x28], 0x1000c380
mov eax, dword [esi + 0x8868]
mov edi, dword [ebp - 0x10c]
mov ebx, dword [ebx + eax]
mov eax, dword [esi + 0x85f8]
mov edi, dword [eax + edi*4]
lea eax, [edi + 0x1c]
push eax
mov eax, dword [ebx + 0x28]
push ebx
call eax
lea eax, [edi - 0x2000]
mov dword [edi + 4], 0
mov dword [edi + 0x10], eax
add esp, 8
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x10c]
inc eax
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0xffffdfff
mov dword [edi + 0x18], ebx
mov dword [ebp - 0x10c], eax
cmp eax, dword [esi + 0x85fc]
jb 0x1002b450
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101a8b60
mov esp, ebp
pop ebp
ret