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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a89c
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x448e28]
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
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004221b0
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x274]
push eax
call fcn.0040a9e0
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x254]
mov dword [ebp - 4], 0
call fcn.00408640
push 0xb
push str.dtl_install
lea ecx, [ebp - 0x254]
mov byte [ebp - 4], 1
call fcn.00406d90
push 0x43fc58
lea edx, [ebp - 0x254]
push edx
lea eax, [ebp - 0x258]
push eax
call fcn.00405a30
mov ebx, dword [eax]
add esp, 0xc
test ebx, ebx
je 0x403182
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x403182
add eax, eax
mov dword [ebp - 0x25c], eax
call fcn.00429740
mov edi, esp
test edi, edi
je 0x403182
mov ecx, dword [ebp - 0x25c]
push 0
push 0
push ecx
push edi
push 0xffffffffffffffff
push ebx
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x403184
xor eax, eax
push eax
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov eax, dword [ebp - 0x258]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4031ad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x258], eax
test eax, eax
jne 0x4031c1
xor ecx, ecx
jmp 0x403208
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x403204
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00429740
mov edi, esp
test edi, edi
je 0x403204
mov ecx, dword [ebp - 0x258]
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push ecx
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb eax, eax
and eax, edi
jmp 0x403206
xor eax, eax
mov ecx, eax
mov edi, 0xf
mov eax, ecx
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], 0
mov byte [ebp - 0x230], 0
lea ebx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x403230
sub eax, ebx
push eax
push ecx
lea ecx, [ebp - 0x234]
call fcn.00407f40
xor ebx, ebx
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 0x24c], bl
mov byte [ebp - 4], 3
mov eax, dword [esi + 0xb8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40334c
lea edx, [ebp - 0x234]
push edx
lea edx, [ebp - 0x250]
lea ecx, [ebp - 0x274]
call fcn.00408d00
test eax, eax
jne 0x40334c
push 6
lea ecx, [esi + 0xa0]
push 0x43fc88
call fcn.00408530
mov ecx, esi
call fcn.004020a0
mov eax, dword [esi + 0x20]
push ebx
push ebx
push 0xbdf
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, 0x10
cmp dword [ebp - 0x238], esi
jb 0x4032d9
mov ecx, dword [ebp - 0x24c]
push ecx
call fcn.00412e16
add esp, 4
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 0x24c], 0
cmp dword [ebp - 0x21c], esi
jb 0x403303
mov edx, dword [ebp - 0x230]
push edx
call fcn.00412e16
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x254]
add eax, 0xfffffff0
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], ebx
mov byte [ebp - 0x230], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40333c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea esi, [ebp - 0x274]
call fcn.00405ca0
jmp 0x4034d3
push 6
lea ecx, [esi + 0xa0]
push 0x43fc98
call fcn.00408530
mov ecx, esi
call fcn.004020a0
mov ecx, dword [esi + 0x20]
push ebx
push 0x17c
push 1
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
push 8
lea ebx, [esi + 0xa4]
push str.ck_W
mov ecx, ebx
call fcn.00408530
mov ecx, esi
call fcn.004020a0
mov eax, dword [esi + 0xb8]
push eax
push str.Path:_s
push 0x203
call fcn.0040bc20
push eax
mov ecx, str..dtl_ui_universalDlg.cpp
mov edx, 4
call fcn.0040be70
mov eax, dword [esi + 0xb8]
add esp, 0x10
push eax
mov edx, 0x4403d0
mov ecx, esi
call fcn.00403ab0
mov edx, dword [esi + 0x20]
push 0
push 0
push 0xbdf
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push 7
push 0x43fce8
mov ecx, ebx
call fcn.00408530
push 0x13
lea ecx, [esi + 0xa8]
push 0x43fcf8
call fcn.00408530
mov ecx, esi
call fcn.004020a0
mov esi, 0x10
cmp dword [ebp - 0x238], esi
jb 0x403424
mov eax, dword [ebp - 0x24c]
push eax
call fcn.00412e16
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x238], edi
mov dword [ebp - 0x23c], ebx
mov byte [ebp - 0x24c], bl
cmp dword [ebp - 0x21c], esi
jb 0x40344f
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00412e16
add esp, 4
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x254]
add eax, 0xfffffff0
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], ebx
mov byte [ebp - 0x230], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x403486
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x268]
cmp eax, ebx
je 0x4034b2
mov ecx, dword [ebp - 0x258]
mov edx, dword [ebp - 0x264]
push ecx
push edx
call fcn.004073a0
mov eax, dword [ebp - 0x268]
push eax
call fcn.00412e16
add esp, 0xc
mov ecx, dword [ebp - 0x274]
push ecx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x264], ebx
mov dword [ebp - 0x260], ebx
call fcn.00412e16
add esp, 4
lea esp, [ebp - 0x288]
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.0041f350
mov esp, ebp
pop ebp
ret