Function at 0x1001d270
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x10029170]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x230], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 0x22c], ecx
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x228], 0x104
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x224], eax
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x238], ebx
push esi
mov esi, 0x10002558
push edi
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
test edx, edx
jne 0x1001d2de
push 0x57
pop eax
jmp 0x1001d4d1
test ecx, ecx
jne 0x1001d2ec
mov eax, 0x490
jmp 0x1001d4d1
cmp ecx, 4
jne 0x1001d306
push 0xe
push 0xe
lea eax, [ebp - 0x14]
mov ecx, ebx
push eax
push eax
call fcn.1001cff4
jmp 0x1001d4d1
push 0x208
xor esi, esi
push esi
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
jne 0x1001d31f
push 8
jmp 0x1001d2d8
call fcn.1001d0ea
mov ecx, dword [ebp - 0x230]
mov eax, dword [ecx]
or eax, dword [ecx + 4]
jne 0x1001d3ba
mov eax, dword [ebp - 0x22c]
push eax
push esi
push 0x1000
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_2.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1001d3e3
lea eax, [ebp - 0x228]
mov edx, ebx
push eax
mov ecx, edi
call fcn.1001d15f
test eax, eax
js 0x1001d3e3
mov edx, dword [ebp - 0x228]
lea esi, [edx + edx]
lea ecx, [esi + ebx]
jmp 0x1001d384
movzx eax, word [ecx]
cmp eax, 0x5c
je 0x1001d38a
cmp eax, 0x2f
je 0x1001d38a
sub ecx, 2
cmp ecx, ebx
ja 0x1001d374
jmp 0x1001d38d
add ecx, 2
mov eax, ecx
sub eax, ebx
sar eax, 1
sub edx, eax
push esi
add edx, edx
push edx
mov edx, dword [ebp - 0x234]
push ebx
push ecx
mov ecx, dword [ebp - 0x238]
call fcn.1001cff4
push edi
mov esi, eax
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x1001d4bb
xor eax, eax
mov dword [ebp - 0x220], esi
lea edi, [ebp - 0x248]
mov esi, 0x104
stosd dword es:[edi], eax
push esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_2_1.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1001d3f0
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_1.dll_GetLastError]
mov esi, eax
jmp 0x1001d4bb
sub esi, eax
lea ecx, [ebp - 0x21c]
add esi, esi
lea ecx, [ecx + eax*2]
push 0x10002568
mov edx, esi
call fcn.1001d51f
mov esi, eax
test esi, esi
js 0x1001d4bb
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
test eax, eax
je 0x1001d3e3
push 0x10002584
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetProcAddress]
mov esi, eax
mov dword [0x10029758], esi
test esi, esi
je 0x1001d3e3
mov eax, dword [ebp - 0x22c]
mov ecx, esi
mov dword [ebp - 0x248], eax
mov eax, dword [ebp - 0x230]
mov eax, dword [eax]
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x248]
push eax
push 1
push 0
call dword [0x1002a1c8]
call esi
mov esi, eax
test esi, esi
jne 0x1001d4bb
mov edi, dword [ebp - 0x23c]
lea eax, [ebp - 0x220]
push eax
mov ecx, edi
call fcn.1001d551
mov esi, eax
test esi, esi
jns 0x1001d48e
push edi
jmp 0x1001d4b5
push dword [ebp - 0x220]
mov edx, dword [ebp - 0x234]
push dword [ebp - 0x220]
mov ecx, dword [ebp - 0x238]
push edi
push edi
call fcn.1001cff4
push dword [ebp - 0x23c]
mov esi, eax
call dword [sym.imp.api_ms_win_core_heap_obsolete_l1_1_0.dll_LocalFree]
push ebx
push 0
push dword [ebp - 0x224]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
call fcn.1001d079
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10012ae0
mov esp, ebp
pop ebp
ret 0x14