Function at 0x10036e03
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x12b8
call fcn.100440a0
mov eax, dword [0x1010b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [0x1030d904]
mov dword [ebp - 0x1294], esi
mov dword [ebp - 0x1290], eax
mov dword [ebp - 0x128c], ebx
test edi, edi
jne 0x10036e54
push str.startup
call fcn.10016cf0
mov edi, eax
pop ecx
mov dword [0x1030d904], edi
mov dword [ebp - 0x12b0], ebx
test byte [edi], 5
je 0x10036ece
call sub.KERNEL32.dll_GetCurrentThreadId
mov esi, eax
lea eax, [ebp - 0x129c]
push eax
call fcn.10014030
pop ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x129c]
push eax
push esi
push ebx
push ebx
mov esi, str.InitCrashReporter
lea eax, [ebp - 0x12b8]
push esi
push edi
push 0x58
push eax
call fcn.100166e0
mov ecx, eax
call fcn.10017bc0
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x12a0], eax
lea eax, [ebp - 0x12ac]
mov dword [ebp - 0x12a8], esi
mov esi, dword [ebp - 0x1294]
mov dword [ebp - 0x12ac], edi
mov dword [ebp - 0x12a4], ecx
mov dword [ebp - 0x12b0], eax
test esi, esi
je 0x10036ef2
xor eax, eax
lea ecx, [ebp - 0x1284]
inc eax
push esi
mov dword [ebp - 0x128c], eax
call fcn.100020d0
mov byte [ebp - 0x1285], bl
cmp dword [eax + 0x10], ebx
jne 0x10036ef9
mov byte [ebp - 0x1285], 1
mov eax, dword [ebp - 0x128c]
test al, 1
je 0x10036f1a
push ebx
and eax, 0xfffffffe
lea ecx, [ebp - 0x1284]
push 1
mov dword [ebp - 0x128c], eax
call fcn.10002960
cmp byte [ebp - 0x1285], bl
je 0x10036f2a
or ebx, 0xffffffff
jmp 0x1003714a
push ebx
push ebx
call fcn.100108e0
pop ecx
pop ecx
mov ecx, 0x1030d8f0
call fcn.10036bba
push eax
call fcn.1003732c
pop ecx
cmp byte [0x1030d8ed], bl
jne 0x1003714a
xor eax, eax
mov word [ebp - 0x120c], ax
lea eax, [ebp - 0x120c]
push 0x800
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x30
call fcn.1002fed0
pop ecx
test eax, eax
je 0x10036f83
mov ecx, eax
call fcn.10037894
mov esi, eax
jmp 0x10036f85
mov esi, ebx
mov edi, 0x101049cc
lea ecx, [ebp - 0x123c]
push edi
call fcn.100020d0
push edi
lea ecx, [ebp - 0x1224]
call fcn.100020d0
lea eax, [ebp - 0x120c]
push eax
lea ecx, [ebp - 0x126c]
call fcn.100020d0
call fcn.10037318
push eax
call fcn.100109f0
push eax
lea eax, [ebp - 0x123c]
mov ecx, esi
push eax
lea eax, [ebp - 0x1224]
push eax
lea eax, [ebp - 0x126c]
push eax
call fcn.10037983
push ebx
push 1
lea ecx, [ebp - 0x126c]
mov dword [ebp - 0x1298], eax
call fcn.10002960
push ebx
push 1
lea ecx, [ebp - 0x1224]
call fcn.10002960
push ebx
push 1
lea ecx, [ebp - 0x123c]
call fcn.10002960
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.100438b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, dword [ebp - 0x1290]
mov esi, ebx
push 2
pop edx
test edi, edi
je 0x10037097
mov esi, edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, edx
cmp ax, bx
jne 0x10037050
sub esi, ecx
xor ecx, ecx
sar esi, 1
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1002fef0
push esi
mov esi, eax
mov dword [ebp - 0x1290], eax
push ebx
push esi
call fcn.100438b0
mov ecx, esi
add esp, 0x10
sub ecx, edi
movzx eax, word [edi]
mov word [ecx + edi], ax
lea edi, [edi + 2]
test ax, ax
jne 0x10037088
push 0xcc
call fcn.1002fed0
mov edi, eax
pop ecx
test edi, edi
je 0x10037109
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x1254]
call fcn.100020d0
push dword [ebp - 0x1298]
or dword [ebp - 0x128c], 2
mov eax, 0x101049cc
test esi, esi
mov ecx, edi
cmovne eax, esi
push eax
push dword [ebp - 0x1294]
lea eax, [ebp - 0x1254]
push 0x120
push 7
push ebx
push 0x100369b9
push 0x10036a80
push 0x10036b87
push 0x1010d8e8
push eax
call fcn.1003ab8c
mov dword [0x1010d5b8], eax
jmp 0x1003710f
mov dword [0x1010d5b8], ebx
mov eax, dword [ebp - 0x128c]
test al, 2
je 0x10037127
push ebx
push 1
lea ecx, [ebp - 0x1254]
call fcn.10002960
push sym.breakpad_plat.dll_DumpProcessWithoutCrash
call fcn.10012a40
mov eax, dword [0x1010d5b8]
pop ecx
cmp dword [eax + 0x10], ebx
je 0x10037143
mov byte [eax + 0xc1], 1
mov byte [0x1030d8ed], 1
lea ecx, [ebp - 0x12b0]
call fcn.10027e10
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041ad4
mov esp, ebp
pop ebp
ret