Function at 0x10031a0d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10073cd1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push esi
push edi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10031d4b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], 0x25c9
cmp dword [ebp - 0x4c], 0xd52
jge 0x10031d0b
mov dword [ebp - 0x78], 0x5d
mov byte [ebp - 0xd], 1
lea eax, [ebp - 0xd]
push eax
push 0x5e
lea ecx, [ebp - 0x5c]
call fcn.10013eac
and dword [ebp - 4], 0
push 0
push 1
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10013ef3
mov ecx, eax
call fcn.10013f12
push eax
push 0
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10013ef3
mov ecx, eax
call fcn.1003bb1f
and dword [ebp - 0x1c], 0
jmp 0x10031ab6
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cvtsi2sd xmm0, dword [ebp - 0x1c]
push 0x5d
pop ecx
movsd qword [ebp - 0x90], xmm0
call fcn.1003be67
addsd xmm0, qword [0x1000b838]
movsd xmm1, qword [ebp - 0x90]
comisd xmm0, xmm1
jb 0x10031b3e
push dword [ebp - 0x1c]
lea eax, [ebp - 0xa8]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10013ef3
mov ecx, eax
call fcn.10013f37
movzx eax, al
test eax, eax
jne 0x10031b03
jmp 0x10031aaf
mov eax, dword [ebp - 0x1c]
shl eax, 1
mov dword [ebp - 0x28], eax
jmp 0x10031b16
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0x5d
jg 0x10031b39
push 0
push dword [ebp - 0x28]
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10013ef3
mov ecx, eax
call fcn.10013f12
jmp 0x10031b0d
jmp 0x10031aaf
and dword [ebp - 0x48], 0
lea eax, [ebp - 0x48]
push eax
push 0x5e
lea ecx, [ebp - 0x74]
call fcn.10013e11
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 1
jmp 0x10031b64
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x5d
jg 0x10031ba6
mov eax, dword [ebp - 0x14]
dec eax
push eax
lea ecx, [ebp - 0x74]
call fcn.10013deb
mov esi, eax
push dword [ebp - 0x14]
lea eax, [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x5c]
call fcn.10013ef3
mov ecx, eax
call fcn.10013f37
movzx edi, al
add edi, dword [esi]
push dword [ebp - 0x14]
lea ecx, [ebp - 0x74]
call fcn.10013deb
mov dword [eax], edi
jmp 0x10031b5d
mov byte [ebp - 0xe], 0
lea eax, [ebp - 0xe]
push eax
push 0x5e
lea ecx, [ebp - 0x88]
call fcn.10013eac
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], 1
jmp 0x10031bcf
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x5d
jg 0x10031c00
push dword [ebp - 0x24]
call fcn.1003191a
pop ecx
movzx eax, al
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0xc0]
push eax
lea ecx, [ebp - 0x88]
call fcn.10013ef3
mov ecx, eax
call fcn.10013f12
jmp 0x10031bc8
and dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push eax
push 0x5e
lea ecx, [ebp - 0x68]
call fcn.10013e11
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], 1
jmp 0x10031c26
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0x5d
jg 0x10031c6b
mov eax, dword [ebp - 0x20]
dec eax
push eax
lea ecx, [ebp - 0x68]
call fcn.10013deb
mov esi, eax
push dword [ebp - 0x20]
lea eax, [ebp - 0xb0]
push eax
lea ecx, [ebp - 0x88]
call fcn.10013ef3
mov ecx, eax
call fcn.10013f37
movzx edi, al
add edi, dword [esi]
push dword [ebp - 0x20]
lea ecx, [ebp - 0x68]
call fcn.10013deb
mov dword [eax], edi
jmp 0x10031c1f
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x1000b28c
call fcn.1005821b
add esp, 0xc
mov dword [ebp - 0x18], 0x5d
jmp 0x10031c90
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jl 0x10031ccd
push dword [ebp - 0x18]
lea ecx, [ebp - 0x68]
call fcn.10013deb
mov esi, dword [ebp - 0x3c]
imul esi, dword [eax]
push dword [ebp - 0x18]
lea ecx, [ebp - 0x74]
call fcn.10013deb
mov ecx, dword [ebp - 0x40]
imul ecx, dword [eax]
cmp esi, ecx
jl 0x10031ccb
push dword [ebp - 0x18]
push 0x1000b274
call fcn.100585c5
pop ecx
pop ecx
jmp 0x10031c89
push 0x1000b6f0
call fcn.10058886
pop ecx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x68]
call fcn.10013d8d
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x88]
call fcn.10013eea
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x74]
call fcn.10013d8d
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.10013eea
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax]
test eax, eax
je 0x10031d22
push 0x2bf
call dword [sym.imp.GDI32.dll_UpdateColors]
jmp 0x10031d49
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x10031d49
push 0
push 0xd9b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x10031d53
push 0
call fcn.1001e0e3
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret