Function at 0x10042263
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007086d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push esi
push edi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100424c9
mov dword [ebp - 0x3c], 0x17e8
cmp dword [ebp - 0x3c], 0x9c7
jge 0x100424af
lea eax, [ebp - 0x14]
push eax
push 0x1000817c
call fcn.10055adb
pop ecx
pop ecx
and dword [ebp - 0x40], 0
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x14]
inc eax
inc eax
push eax
lea ecx, [ebp - 0x80]
call fcn.1000f43d
and dword [ebp - 4], 0
mov dword [ebp - 0x24], 1
jmp 0x100422da
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x14]
jg 0x100422fc
push dword [ebp - 0x24]
lea ecx, [ebp - 0x80]
call fcn.1000f48a
push eax
push 0x1000817c
call fcn.10055adb
pop ecx
pop ecx
jmp 0x100422d3
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp - 0x14]
inc eax
inc eax
push eax
lea ecx, [ebp - 0x74]
call fcn.1000f43d
mov byte [ebp - 4], 1
and dword [ebp - 0x48], 0
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x14]
inc eax
inc eax
push eax
lea ecx, [ebp - 0x68]
call fcn.1000f43d
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], 1
jmp 0x10042340
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
jg 0x10042399
mov eax, dword [ebp - 0x18]
and eax, 0x80000001
jns 0x10042357
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
je 0x10042364
mov dword [ebp - 0x2c], 1
jmp 0x10042368
or dword [ebp - 0x2c], 0xffffffff
mov eax, dword [ebp - 0x18]
dec eax
push eax
lea ecx, [ebp - 0x74]
call fcn.1000f48a
mov esi, eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x80]
call fcn.1000f48a
mov edi, dword [ebp - 0x2c]
imul edi, dword [eax]
add edi, dword [esi]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x74]
call fcn.1000f48a
mov dword [eax], edi
jmp 0x10042339
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
jmp 0x100423a8
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jl 0x10042402
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
and eax, 0x80000001
jns 0x100423c0
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
je 0x100423cd
mov dword [ebp - 0x30], 1
jmp 0x100423d1
or dword [ebp - 0x30], 0xffffffff
mov eax, dword [ebp - 0x1c]
inc eax
push eax
lea ecx, [ebp - 0x68]
call fcn.1000f48a
mov esi, eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x80]
call fcn.1000f48a
mov edi, dword [ebp - 0x30]
imul edi, dword [eax]
add edi, dword [esi]
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x68]
call fcn.1000f48a
mov dword [eax], edi
jmp 0x100423a1
and dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 1
jmp 0x10042416
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x14]
jg 0x1004247c
mov eax, dword [ebp - 0x14]
and eax, 0x80000001
jns 0x1004242d
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
je 0x1004243a
mov dword [ebp - 0x34], 1
jmp 0x1004243e
or dword [ebp - 0x34], 0xffffffff
mov eax, dword [ebp - 0x20]
dec eax
push eax
lea ecx, [ebp - 0x74]
call fcn.1000f48a
mov esi, eax
mov eax, dword [ebp - 0x20]
inc eax
push eax
lea ecx, [ebp - 0x68]
call fcn.1000f48a
mov ecx, dword [ebp - 0x34]
imul ecx, dword [eax]
add ecx, dword [esi]
jne 0x1004246d
mov dword [ebp - 0x38], 1
jmp 0x10042471
and dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x38]
mov dword [ebp - 0x28], eax
jmp 0x1004240f
push dword [ebp - 0x28]
push 0x100081bc
call fcn.10055d0f
pop ecx
pop ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.1000f485
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.1000f485
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.1000f485
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
push 0x3121
push dword [ebp - 0x4c]
push 1
call fcn.1004252c
add esp, 0xc
jmp 0x1004251c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x50]
movzx eax, byte [eax]
test eax, eax
je 0x10042504
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
movzx eax, byte [eax]
test eax, eax
je 0x10042502
push 0
push 0x1e8a
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x1004251c
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x1004251c
push 0
push 0
push 0
call dword [sym.imp.OLEAUT32.dll_SysStringByteLen]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret