Function at 0x411920
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ceb6
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x48d06c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x258], ebx
lea ecx, [ebp - 0x250]
call fcn.0041ba80
lea esi, [ebx + 0x2b8]
mov dword [ebp - 4], 0
cmp esi, eax
je 0x411987
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x41197c
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.00407590
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x23c]
cmp edx, 8
jb 0x4119ce
mov ecx, dword [ebp - 0x250]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4119c4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411cb9
push edx
push ecx
call fcn.0042297a
add esp, 8
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4119d8
mov eax, dword [esi]
push eax
push str.GetTempPath_:__s
push 0x48dac0
call fcn.00417de0
mov eax, dword [esi + 0x10]
add esp, 0xc
test eax, eax
jne 0x411a14
lea ecx, [ebx + 0x2a0]
cmp esi, ecx
je 0x411a14
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x411a06
mov eax, dword [ecx]
push dword [ecx + 0x10]
mov ecx, esi
push eax
call fcn.00407590
mov eax, dword [esi + 0x10]
cmp eax, 1
jb 0x411a4f
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x411a23
mov ecx, dword [esi]
movzx ecx, word [ecx + eax*2 - 2]
xor eax, eax
nop word [eax + eax]
cmp cx, word [eax + 0x482750]
je 0x411a4f
add eax, 2
cmp eax, 4
jb 0x411a30
push 1
push 0x486c90
mov ecx, esi
call fcn.00407dd0
push 0x20a
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.00424870
add esp, 0xc
push 0
call fcn.00438a17
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 4
mov dword [ebp - 0x254], eax
xor edi, edi
mov dword [ebp - 0x23c], edx
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x411a8d
mov ecx, dword [esi]
lea edx, [ebp - 0x220]
push edx
push eax
push str.UNINST
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x411ab2
lea eax, [ebp - 0x220]
push eax
call ebx
test eax, eax
je 0x411abe
mov eax, dword [ebp - 0x254]
inc edi
cmp edi, 5
jl 0x411a83
lea eax, [ebp - 0x220]
push eax
call ebx
test eax, eax
jne 0x411b66
lea eax, [ebp - 0x220]
push eax
push str.GetTempFileName_:__s
push 0x48dac0
call fcn.00417de0
add esp, 0xc
lea ecx, [ebp - 0x220]
call fcn.0041a040
test eax, eax
je 0x411b66
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411b00
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00407590
mov ecx, dword [esi + 0x10]
cmp ecx, 1
jb 0x411b56
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x411b30
mov eax, dword [esi]
movzx ecx, word [eax + ecx*2 - 2]
xor eax, eax
cmp cx, word [eax + 0x482750]
je 0x411b56
add eax, 2
cmp eax, 4
jb 0x411b37
push 1
push 0x486c90
mov ecx, esi
call fcn.00407dd0
mov eax, dword [ebp - 0x258]
mov dword [eax + 0x29c], 1
mov dword [ebp - 0x244], 0x475b10
lea ebx, [ebp - 0x23c]
mov dword [ebp - 0x240], 0x6b
xor edi, edi
mov dword [ebp - 0x23c], 0x475b20
nop dword [eax]
push esi
lea ecx, [ebp - 0x238]
call fcn.0040e900
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x228]
cmp ecx, 1
jb 0x411bf3
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
cmovae eax, dword [ebp - 0x238]
movzx ecx, word [eax + ecx*2 - 2]
xor eax, eax
nop dword [eax]
cmp cx, word [eax + 0x482750]
je 0x411bf3
add eax, 2
cmp eax, 4
jb 0x411bd0
push 1
push 0x486c90
lea ecx, [ebp - 0x238]
call fcn.00407dd0
push dword [ebx - 8]
lea ecx, [ebp - 0x238]
call fcn.004198a0
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
mov edx, dword [ebx - 4]
cmovae ecx, dword [ebp - 0x238]
push ecx
push dword [ebx]
call fcn.004160f0
cmp dword [ebp - 0x224], 8
lea ecx, [ebp - 0x238]
push eax
cmovae ecx, dword [ebp - 0x238]
push ecx
push str.Extrace_File___s____d_
push 0x48dac0
call fcn.00417de0
mov dword [ebp - 4], 0xffffffff
add esp, 0x18
mov edx, dword [ebp - 0x224]
cmp edx, 8
jb 0x411c8b
mov ecx, dword [ebp - 0x238]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411c81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411cb9
push edx
push ecx
call fcn.0042297a
add esp, 8
inc edi
add ebx, 0xc
cmp edi, 1
jb 0x411b90
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00422308
mov esp, ebp
pop ebp
ret
call fcn.004309e5
int3