Function at 0x40c9cecd
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x40ca9120]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword fs:[0x18]
mov eax, dword [ebp + 0xc]
mov edx, dword [edx + 0x30]
mov ecx, dword [ebp + 0x14]
mov edx, dword [edx + 0x18]
push ebx
push esi
push edi
mov esi, 0x40c9d18c
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x18]
movsw word es:[edi], word [esi]
xor esi, esi
mov ebx, 0x104
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x234], ebx
cmp eax, esi
jne 0x40c9cf39
push 0x57
pop eax
jmp 0x40c9d046
cmp dword [ebp + 8], esi
jne 0x40c9cf48
mov eax, 0x490
jmp 0x40c9d046
cmp dword [ebp + 8], 4
jne 0x40c9cf63
push 0xe
push 0xe
lea edx, [ebp - 0x14]
push edx
push edx
push eax
push ecx
call fcn.40c9ce48
jmp 0x40c9d046
push 0x208
push esi
push edx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [ebp - 0x248], edi
cmp edi, esi
jne 0x40c9cf80
push 8
jmp 0x40c9cf33
call fcn.40c9cc8b
mov eax, dword [ebp - 0x22c]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
jne 0x40c9d057
push dword [ebp + 8]
push esi
push 0x1000
call dword [sym.imp.API_MS_Win_Core_Synch_L1_1_0.dll_OpenProcess]
mov ebx, eax
cmp ebx, esi
jne 0x40c9cfca
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
push edi
push esi
push dword [ebp - 0x220]
mov ebx, eax
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
call fcn.40c9ccf0
mov eax, ebx
jmp 0x40c9d046
lea eax, [ebp - 0x234]
push eax
push edi
push ebx
call fcn.40c9cb71
test eax, eax
jl 0x40c9cfab
mov eax, dword [ebp - 0x234]
lea edx, [eax + eax]
lea ecx, [edx + edi]
jmp 0x40c9cffb
movzx esi, word [ecx]
cmp si, 0x5c
je 0x40c9d001
cmp si, 0x2f
je 0x40c9d001
dec ecx
dec ecx
cmp ecx, edi
jbe 0x40c9d003
jmp 0x40c9cfea
inc ecx
inc ecx
push edx
mov edx, ecx
sub edx, edi
sar edx, 1
sub eax, edx
add eax, eax
push eax
push edi
push ecx
push dword [ebp - 0x228]
push dword [ebp - 0x230]
call fcn.40c9ce48
push ebx
mov esi, eax
call dword [sym.imp.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle]
push dword [ebp - 0x248]
push 0
push dword [ebp - 0x220]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
call fcn.40c9ccf0
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.40c934af
leave
ret 0x14
xor eax, eax
mov dword [ebp - 0x244], esi
lea edi, [ebp - 0x240]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x224], esi
call dword [sym.imp.API_MS_Win_Core_SysInfo_L1_1_0.dll_GetSystemDirectoryW]
cmp eax, esi
jne 0x40c9d08a
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
mov esi, eax
jmp 0x40c9d02b
sub ebx, eax
push 0x40c9d170
add ebx, ebx
push ebx
lea eax, [ebp + eax*2 - 0x21c]
push eax
call fcn.40c9cd57
mov esi, eax
test esi, esi
jl 0x40c9d02b
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetModuleHandleW]
test eax, eax
je 0x40c9d080
push 0x40c9d158
push eax
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
mov dword [0x40ca978c], eax
test eax, eax
je 0x40c9d080
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x244], ecx
mov ecx, dword [ebp - 0x22c]
mov ecx, dword [ecx]
mov dword [ebp - 0x240], ecx
lea ecx, [ebp - 0x244]
push ecx
push 1
push 0
call eax
mov esi, eax
test esi, esi
jne 0x40c9d02b
lea eax, [ebp - 0x224]
push eax
push 0x208
push dword [ebp - 0x238]
call fcn.40c9cde3
mov esi, eax
test esi, esi
jge 0x40c9d129
push dword [ebp - 0x238]
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_LocalFree]
jmp 0x40c9d02b
push dword [ebp - 0x224]
push dword [ebp - 0x224]
push dword [ebp - 0x238]
push dword [ebp - 0x238]
push dword [ebp - 0x228]
push dword [ebp - 0x230]
call fcn.40c9ce48
mov esi, eax
jmp 0x40c9d118