Function at 0x40f802
Capabilities:
Get common file path

Disassembly:
mov eax, 0x414912
call fcn.00413240
sub esp, 0x6c4
mov eax, dword [0x4241a4]
push ebx
push esi
xor eax, ebp
xor esi, esi
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x6b8], ecx
mov dword [ebp - 0x6ac], esi
mov dword [ebp - 0x6ac], ebp
push esi
push dword [ebp - 0x6ac]
push str.void___thiscall_CBugReporter::Start_void_
call fcn.00407881
mov edi, eax
add esp, 0xc
cmp edi, esi
mov eax, 0x41b730
jne 0x40f854
mov edi, eax
push esi
push esi
push esi
push dword [ebp - 0x6b8]
lea ecx, [ebp - 0x6d0]
push eax
push 0x41b704
push edi
call fcn.00409792
mov dword [ebp - 4], esi
cmp edi, esi
jne 0x40f878
push ebp
pop ebp
call dword [0x424060]
mov word [ebp - 0x4a0], si
mov ebx, 0x81
xor eax, eax
mov ecx, ebx
lea edi, [ebp - 0x49e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x4a0]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
xor edx, edx
xor eax, eax
mov word [ebp - 0x298], dx
mov ecx, ebx
lea edi, [ebp - 0x296]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x6a8], dx
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edi, [ebp - 0x6a6]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea eax, [ebp - 0x298]
push eax
push edx
call ebx
push esi
lea eax, [ebp - 0x298]
push eax
lea eax, [ebp - 0x6a8]
push eax
call dword [sym.imp.MSVCR71.dll_wcsncpy]
add esp, 0xc
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x4a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov ecx, dword [ebp - 0x6b8]
lea eax, [ebp - 0x4a0]
push eax
call fcn.0040e7f6
mov ecx, dword [ebp - 0x6b8]
push 1
call fcn.0040ea05
push 0x1f
pop ecx
mov byte [ebp - 0x90], 0x30
mov byte [ebp - 0x8f], 0x30
xor eax, eax
lea edi, [ebp - 0x8e]
rep stosd dword es:[edi], eax
push str.dl_peer_id.dll
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor edi, edi
cmp eax, edi
je 0x40fa6a
push str.DllGetClassObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x6ac]
mov dword [ebp - 0x6b0], eax
call fcn.0040dafd
mov byte [ebp - 4], 1
lea eax, [ebp - 0x6ac]
push eax
push 0x41e098
push 0x41a3e4
call dword [ebp - 0x6b0]
lea ecx, [ebp - 0x6b4]
mov dword [ebp - 0x6b0], eax
call fcn.0040db20
mov byte [ebp - 4], 2
cmp dword [ebp - 0x6b0], edi
jl 0x40fa4c
mov eax, dword [ebp - 0x6ac]
cmp eax, edi
je 0x40fa4c
mov ecx, dword [eax]
lea edx, [ebp - 0x6b4]
push edx
push 0x41a3d4
push edi
push eax
call dword [ecx + 0xc]
cmp eax, edi
jl 0x40fa4c
mov eax, dword [ebp - 0x6b4]
cmp eax, edi
je 0x40fa4c
lea edx, [ebp - 0x6b0]
push edx
lea edx, [ebp - 0x90]
push edx
push 0x800
mov dword [ebp - 0x6b0], 0x80
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x6b4]
cmp eax, edi
je 0x40fa4c
mov dword [ebp - 0x6b4], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x6b4]
call fcn.0040d797
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x6ac]
call fcn.0040d76d
mov ecx, dword [ebp - 0x6b8]
lea eax, [ebp - 0x90]
push eax
call fcn.0040e906
push esi
lea eax, [ebp - 0x298]
push eax
push edi
call ebx
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, eax
call fcn.0040cc33
mov ecx, dword [ebp - 0x6b8]
push eax
push str.0x800
push edi
lea eax, [ebp - 0x298]
push eax
push esi
call fcn.0040e872
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6d0]
call fcn.00409a0c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413159
leave
ret