Function at 0x405300
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fa48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov eax, dword [0x4285b4]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], eax
push 0x100
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00417592
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0041756a
push 0x1f2c
mov byte [ebp - 4], 2
call fcn.00417668
add esp, 4
lea edx, [ebp + 8]
mov ebx, eax
push ecx
mov dword [ebp - 0x34], ebx
mov ecx, esp
mov dword [ebp - 0x30], esp
push edx
call fcn.00416f53
mov ecx, esi
call fcn.00404f60
cmp eax, edi
je 0x4056c0
push ecx
lea ecx, [ebp - 0x14]
mov eax, esp
mov dword [ebp - 0x30], esp
push str._prvw.bmp
push ecx
push eax
call fcn.00417409
mov ecx, esi
call fcn.00405110
cmp ebx, edi
je 0x4056c0
lea edx, [ebp - 0x14]
push str._prvw.jpg
lea eax, [ebp - 0x30]
push edx
push eax
call fcn.00417409
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push str._prvw.bmp
lea eax, [ebp - 0x2c]
push edx
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x28], ecx
call fcn.00417409
mov eax, dword [eax]
push 0x42810c
push eax
mov byte [ebp - 4], 4
call fcn.00408ec3
mov esi, eax
add esp, 8
cmp esi, edi
mov dword [ebp - 0x18], esi
jne 0x405404
mov dword [ebp - 0x1c], edi
jmp 0x4056a8
push edi
push edi
push esi
call fcn.00408dd9
push esi
push 1
lea ecx, [ebp - 0x44]
push 0xe
push ecx
call fcn.00408cc2
push esi
push 1
lea edx, [ebp - 0x70]
push 0x28
push edx
call fcn.00408cc2
mov esi, dword [ebp - 0x6c]
add esp, 0x2c
mov eax, esi
and eax, 0x80000007
jns 0x40543c
dec eax
or eax, 0xfffffff8
inc eax
jne 0x405442
mov ecx, esi
jmp 0x405458
mov ecx, 8
sub ecx, eax
and ecx, 0x80000007
jns 0x405456
dec ecx
or ecx, 0xfffffff8
inc ecx
add ecx, esi
mov edx, dword [ebp - 0x68]
mov eax, edx
and eax, 0x80000007
jns 0x405469
dec eax
or eax, 0xfffffff8
inc eax
jne 0x40546f
mov eax, edx
jmp 0x405486
mov edi, 8
sub edi, eax
mov eax, edi
and eax, 0x80000007
jns 0x405484
dec eax
or eax, 0xfffffff8
inc eax
add eax, edx
mov dword [ebp - 0x3c], eax
mov dword [ebx + 0xc], eax
imul eax, ecx
mov word [ebp - 0x38], 0x18
mov dword [ebp - 0x40], ecx
lea eax, [eax + eax*2]
mov dword [ebp - 0x44], edx
push eax
mov dword [ebp - 0x48], esi
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], edx
mov dword [ebx + 8], ecx
call fcn.00417668
add esp, 4
mov ecx, 5
sub esp, 0x14
lea esi, [ebp - 0x48]
mov edi, esp
mov dword [ebp - 0x20], eax
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x18]
push eax
push esi
mov ecx, ebx
call fcn.00401640
push esi
call fcn.00408c45
mov esi, dword [ebx + 8]
mov byte [ebx], 0
imul esi, dword [ebx + 0xc]
push esi
mov byte [ebx + 1], 7
call fcn.00417668
add esp, 8
mov edi, eax
push esi
call fcn.00417668
add esp, 4
mov dword [ebp - 0x24], eax
push esi
call fcn.00417668
mov esi, dword [ebp - 0x24]
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, ebx
push eax
mov eax, dword [ebp - 0x20]
push esi
push edi
push eax
call fcn.00401710
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
push 8
push 8
push ecx
push edx
push edi
mov ecx, ebx
call fcn.00401830
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
push 8
push 8
push eax
push ecx
push esi
mov ecx, ebx
call fcn.00401830
mov edx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
mov ecx, dword [ebp - 0x18]
push 8
push 8
push edx
push eax
push ecx
mov ecx, ebx
call fcn.00401830
push 0x3c
lea edx, [ebx + 0x101c]
push edx
push 0x421ab8
mov ecx, ebx
call fcn.00401960
lea eax, [ebx + 0x105c]
push 0x3c
push eax
push 0x421af8
mov ecx, ebx
call fcn.00401960
mov ecx, ebx
call fcn.00401a10
lea ecx, [ebx + 0x817]
mov dword [ebx + 0x1018], ecx
mov ecx, ebx
call fcn.00402f90
mov edx, dword [ebp - 0x28]
push 0x428108
push edx
call fcn.00408ec3
add esp, 8
mov dword [ebx + 4], eax
test eax, eax
je 0x405678
push eax
push 1
push 2
push 0x421d26
call fcn.00408b0c
add esp, 0x10
mov ecx, ebx
call fcn.00401ad0
mov ecx, ebx
call fcn.00401b40
mov ecx, ebx
call fcn.00401bb0
mov ecx, ebx
call fcn.00401c80
mov ecx, ebx
call fcn.00401e50
lea eax, [ebx + 0x129c]
mov ecx, ebx
push eax
push 0x421b8c
push 0x421b78
call fcn.00401eb0
lea ecx, [ebx + 0x132c]
push ecx
push 0x421bcc
push 0x421bb8
mov ecx, ebx
call fcn.00401eb0
lea edx, [ebx + 0x12e4]
mov ecx, ebx
push edx
push 0x421bac
push 0x421b98
call fcn.00401eb0
lea eax, [ebx + 0x192c]
mov ecx, ebx
push eax
push 0x421c84
push 0x421c70
call fcn.00401eb0
mov ecx, dword [ebp - 0x18]
push ecx
push esi
push edi
mov ecx, ebx
call fcn.00401f60
mov edx, dword [ebx + 4]
push edx
push 1
push 2
push 0x421d28
call fcn.00408b0c
mov eax, dword [ebx + 4]
push eax
call fcn.00408c45
add esp, 0x14
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00417691
push edi
call fcn.00417691
push esi
call fcn.00417691
mov edx, dword [ebp - 0x18]
push edx
call fcn.00417691
mov ecx, dword [ebx + 4]
add esp, 0x10
xor eax, eax
test ecx, ecx
setne al
mov dword [ebp - 0x1c], eax
xor edi, edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004171c0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004171c0
lea ecx, [ebp - 0x14]
push str._prvw.jpg
lea edx, [ebp - 0x30]
push ecx
push edx
call fcn.00417409
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 5
call fcn.004172ad
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004171c0
jmp 0x405705
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.004171c0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004171c0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8