Function at 0x1001a050
Capabilities:
Get common file path
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009e33b
mov eax, dword fs:[0]
push eax
sub esp, 0x558
mov eax, dword [0x10114860]
xor eax, esp
mov dword [esp + 0x550], eax
push ebx
push esi
push edi
mov eax, dword [0x10114860]
xor eax, esp
push eax
lea eax, [esp + 0x568]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
movdqa xmm0, xmmword [0x100f12a0]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1d4]
push ecx
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x1d8], 0x1002f7d0
mov dword [esp + 0x1dc], 0x1002f870
mov dword [esp + 0x1e0], 0x1002f810
mov dword [esp + 0x1e4], 0x1002f8b0
mov dword [esp + 0x1e8], 0x1002f950
mov dword [esp + 0x240], 0
mov dword [esp + 0x244], 0
mov dword [esp + 0x1ec], 0
mov dword [esp + str.Bogus_message_code__d], 0x100ee8c8
movdqu xmmword [esp + 0x24c], xmm0
mov dword [esp + 0x28], eax
call fcn.1002ebf0
xor eax, eax
push 0x1fe
push eax
mov word [esp + 0x368], ax
lea eax, [esp + 0x36a]
push eax
call fcn.10079800
add esp, 0x10
lea eax, [esp + 0x35c]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x100
lea eax, [esp + 0x360]
push eax
lea eax, [esp + 0x264]
push eax
call fcn.1007b7ce
add esp, 0xc
mov dword [esp + 0x1cc], 0xf
mov dword [esp + 0x1c8], 0
mov byte [esp + 0x1b8], 0
mov dword [esp + 0x570], 0
cmp byte [esp + 0x25c], 0
jne 0x1001a1bc
xor ecx, ecx
jmp 0x1001a1cf
lea ecx, [esp + 0x25c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001a1c6
sub ecx, edx
push ecx
lea eax, [esp + 0x260]
push eax
lea ecx, [esp + 0x1c0]
call fcn.10005a10
push 8
push str.foo1.jpg
lea ecx, [esp + 0x1c0]
call fcn.10005a10
cmp dword [esp + 0x1cc], 0x10
lea eax, [esp + 0x1b8]
push 0x100eed74
cmovae eax, dword [esp + 0x1bc]
push eax
call fcn.1007aa14
mov ebx, eax
add esp, 8
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x1001a23d
mov ecx, dword [esp + 0x28]
push 0x1c
push eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx]
call eax
add esp, 0xc
mov dword [esp + 0x3c], eax
mov dword [eax + 8], 0x1002f6e0
lea ecx, [esp + 0x24]
mov dword [eax + 0xc], 0x1002f710
mov dword [eax + 0x10], 0x1002f760
mov dword [eax + 0x14], ebx
mov eax, dword [edi]
mov dword [esp + 0x40], eax
mov eax, dword [esi]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], 3
mov dword [esp + 0x4c], 2
call fcn.1002f160
mov eax, dword [ebp + 0x14]
mov word [esp + 0xec], ax
mov eax, dword [ebp + 0x18]
mov word [esp + 0xee], ax
mov eax, dword [edi]
mov byte [esp + 0xeb], 1
lea eax, [eax + eax*2]
lea eax, [eax*8 + 7]
cdq
and edx, 7
add eax, edx
sar eax, 3
add eax, 3
cdq
and edx, 3
lea esi, [edx + eax]
and esi, 0xfffffffc
jns 0x1001a2be
neg esi
lea ecx, [esp + 0x24]
call fcn.1002eeb0
mov ecx, dword [esp + 0xf4]
cmp ecx, dword [esp + 0x44]
jae 0x1001a313
mov edi, dword [ebp + 0x1c]
jmp 0x1001a2e0
mov eax, esi
lea edx, [esp + 0x1d0]
imul eax, ecx
push ecx
lea ecx, [esp + 0x28]
add eax, edi
mov dword [esp + 0x1d4], eax
call fcn.1002ef20
mov ecx, dword [esp + 0xf8]
add esp, 4
cmp ecx, dword [esp + 0x44]
jb 0x1001a2e0
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x24]
call fcn.1002ed60
push ebx
call fcn.1007a8d9
mov eax, dword [esp + 0x2c]
add esp, 4
test eax, eax
je 0x1001a33a
mov eax, dword [eax + 0x28]
lea ecx, [esp + 0x24]
push ecx
call eax
add esp, 4
cmp dword [esp + 0x1cc], 0x10
lea eax, [esp + 0x1b8]
push 0x100eed78
cmovae eax, dword [esp + 0x1bc]
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x40], 0
call fcn.1007aa14
mov ecx, dword [esp + 0x20]
mov esi, eax
push esi
mov ecx, dword [ecx]
imul ecx, dword [edi]
lea ecx, [ecx + ecx*2]
push ecx
push 1
push dword [esp + 0x30]
call fcn.1007b3f0
mov ecx, dword [esp + 0x2c]
push esi
mov dword [ecx], eax
call fcn.1007a8d9
add esp, 0x1c
cmp dword [esp + 0x1cc], 0x10
jb 0x1001a3af
push dword [esp + 0x1b8]
call fcn.10077622
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x568]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x550]
xor ecx, esp
call fcn.1007ac04
mov esp, ebp
pop ebp
ret 0x1c