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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f5f6c
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x65b500]
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 edi, ecx
call fcn.00406890
mov ecx, eax
test ecx, ecx
je 0x427b13
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x220], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
or eax, ecx
mov dword [ebp - 4], 0
jge 0x4278ae
push 0x104
lea ecx, [ebp - 0x220]
call fcn.00407430
mov esi, dword [ebp - 0x220]
push 0
push 0x10
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [esi - 8]
push esi
call fcn.005cbb65
add esp, 8
test eax, eax
js 0x427b09
cmp eax, dword [esi - 8]
jg 0x427b09
xor ecx, ecx
mov dword [esi - 0xc], eax
push 0x58
mov word [esi + eax*2], cx
lea eax, [ebp - 0x284]
push ecx
push eax
call fcn.005c5370
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005c5370
mov eax, dword [edi + 4]
add esp, 0x18
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x284]
mov dword [ebp - 0x284], 0x58
push eax
mov dword [ebp - 0x278], 0x6059b0
mov dword [ebp - 0x26c], 1
mov dword [ebp - 0x264], 0x208
mov dword [ebp - 0x258], esi
mov dword [ebp - 0x254], 0x6059ec
mov dword [ebp - 0x250], 0x1804
mov dword [edi + 0x49c], 1
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
or ebx, 0xffffffff
mov dword [edi + 0x49c], 0
test eax, eax
je 0x427acd
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x427acd
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
push eax
lea ecx, [ebp - 0x224]
call fcn.00406060
push 1
lea eax, [ebp - 0x224]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2a4]
call fcn.00432480
mov edx, dword [ebp - 0x224]
mov eax, ebx
mov byte [ebp - 4], 3
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4279f3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
lea eax, [ebp - 0x2a4]
push eax
call fcn.00425dc0
test eax, eax
je 0x427a2a
push 0
push 0
push 1
push 0
push str.add_exe
call fcn.00421e70
mov ecx, eax
call fcn.00444e70
jmp 0x427ac2
cmp dword [ebp - 0x21c], 0
je 0x427ac2
mov ecx, dword [edi + 0x45c]
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x21c], 0
call fcn.0047bc00
mov ebx, dword [ebp - 0x21c]
cmp ebx, dword [edi + 0x460]
jne 0x427abf
test ebx, ebx
je 0x427abf
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x228]
call fcn.00406060
lea eax, [ebp - 0x228]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.0040a1f0
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 3
call fcn.00406220
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x427abf
push eax
mov ecx, ebx
call fcn.0040b100
mov eax, dword [ebp - 0x22c]
mov ecx, edi
push eax
push ebx
call fcn.004201a0
or ebx, 0xffffffff
lea ecx, [ebp - 0x2a4]
call fcn.00407b10
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x427ae9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.004da36e
mov esp, ebp
pop ebp
ret 0x10
push 0x80070057
call fcn.004064e0
push 0x80004005
call fcn.004064e0
int3