Function at 0x402680
Capabilities:
Check if file exists
Copy file
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1d5f8
call fcn.00412d40
mov eax, dword [0x41c470]
xor eax, esp
mov dword [esp + 0x1d5f4], eax
mov eax, dword [0x41d55c]
push esi
mov esi, dword [ebp + 8]
push edi
cmp eax, 1
je 0x4026f0
cmp eax, 2
jne 0x402845
mov eax, dword [0x41d560]
mov eax, dword [eax + 4]
mov ecx, str.uifhaskdjhf8jwef
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4026e3
test dl, dl
je 0x4026df
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4026e3
add eax, 2
add ecx, 2
test dl, dl
jne 0x4026c3
xor eax, eax
jmp 0x4026e8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40282d
push 0x9c40
lea eax, [esp + 0x9d7c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x138]
push ecx
push 0x9c40
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x138]
push edx
push 0
push str.aurogon_install
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push 0
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x9d80]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [esp + 0x9d78]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402752
sub eax, edx
push eax
lea eax, [esp + 0x9d7c]
push eax
mov ecx, 0x41d414
call fcn.00404720
mov edi, 2
call fcn.00403eb0
cmp eax, 0xffffffff
je 0x40278a
push 0xffffffffffffffff
push eax
mov ecx, 0x41d414
call fcn.00402c80
cmp dword [0x41d428], 0x10
mov eax, dword [0x41d414]
jae 0x40279d
mov eax, 0x41d414
push eax
lea ecx, [esp + 0x13c]
push ecx
lea edx, [esp + 0x139c0]
push str.__s__uifhaskdjhf8jwef___s_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x44
lea eax, [esp + 0xcc]
push 0
push eax
call fcn.0040c3f0
add esp, 0x1c
lea ecx, [esp + 0x100]
push ecx
lea edx, [esp + 0xbc]
push edx
push 0x419458
push 0
push 0
push 1
push 0
push 0
lea eax, [esp + 0x139d8]
push eax
push 0
mov dword [esp + 0xe0], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp dword [0x41d55c], edi
jne 0x40282d
mov ecx, dword [esp + 0x100]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x100]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1d5f4]
xor ecx, esp
call fcn.00406048
mov esp, ebp
pop ebp
ret 0x10
cmp eax, 3
jne 0x40282d
mov edx, dword [0x41d560]
mov eax, dword [edx + 4]
mov ecx, str.uifhaskdjhf8jwef
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x402878
test dl, dl
je 0x402874
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x402878
add eax, 2
add ecx, 2
test dl, dl
jne 0x402858
xor eax, eax
jmp 0x40287d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40282d
push eax
mov dword [0x41e228], esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [0x41d560]
mov ecx, dword [eax + 8]
mov eax, ecx
lea esi, [eax + 1]
jmp 0x4028a0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4028a0
sub eax, esi
push eax
push ecx
mov ecx, 0x41d414
call fcn.00404720
push 0xd
mov edi, 0xf
push str.uninstall.log
lea ecx, [esp + 0x108]
mov dword [esp + 0x11c], edi
mov dword [esp + 0x118], 0
mov byte [esp + 0x108], 0
call fcn.00404720
push 0x41d414
lea esi, [esp + 0x104]
lea ecx, [esp + 0x120]
call fcn.00401a90
mov esi, 0x10
add esp, 4
cmp dword [esp + 0x114], esi
jb 0x402920
mov ecx, dword [esp + 0x100]
push ecx
call fcn.004073d8
add esp, 4
mov eax, dword [esp + 0x11c]
cmp dword [esp + 0x130], esi
jae 0x402937
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x402967
lea ecx, [esp + 0x11c]
call fcn.00402c50
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1d5f4]
xor ecx, esp
call fcn.00406048
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esp + 0x11c]
cmp dword [esp + 0x130], esi
jae 0x40297e
lea eax, [esp + 0x11c]
push eax
lea edx, [esp + 0xc]
push edx
call fcn.00403170
lea eax, [esp + 8]
push eax
call fcn.004017a0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 0xc]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 4
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x402a99
mov ecx, dword [esp + 8]
mov dword [esp + 0x114], edi
mov dword [esp + 0x110], 0
mov byte [esp + 0x100], 0
mov edx, dword [ecx + 4]
push 0xa
lea eax, [esp + edx + 0xc]
push eax
call fcn.00404ca0
movzx ecx, al
push ecx
lea edx, [esp + 0x104]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.004053e0
mov ecx, dword [eax]
mov edx, dword [ecx + 4]
add esp, 0xc
test byte [edx + eax + 0xc], 6
jne 0x402b15
cmp dword [esp + 0x110], 0
je 0x402a54
mov esi, dword [0x41e234]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x100]
push eax
push ecx
push esi
call fcn.00404a60
mov edx, 0x9249248
sub edx, dword [0x41e238]
cmp edx, 1
jb 0x402b26
inc dword [0x41e238]
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
mov dword [ecx], eax
mov esi, 0x10
cmp dword [esp + 0x114], esi
jb 0x402a6d
mov edx, dword [esp + 0x100]
push edx
call fcn.004073d8
add esp, 4
lea eax, [esp + 8]
push eax
call fcn.004017a0
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 0xc]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 4
neg eax
sbb eax, eax
not eax
test ecx, eax
jne 0x4029b5
lea eax, [esp + 0x18]
call fcn.004041d0
test eax, eax
jne 0x402ac8
mov ecx, dword [esp + 8]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x14]
lea ecx, [esp + ecx + 8]
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x402ac1
or eax, 4
push 0
call fcn.00401530
mov edx, dword [0x41e238]
lea ecx, [esp + 8]
mov dword [0x41e230], edx
call fcn.00402b90
lea ecx, [esp + 0x11c]
call fcn.00402c50
mov esi, dword [sym.imp.USER32.dll_DialogBoxParamA]
xor eax, eax
mov dword [0x41e22c], eax
sub eax, 0
je 0x402b47
dec eax
je 0x402b30
dec eax
jne 0x402b5e
push eax
push 0x401a10
push eax
mov eax, dword [0x41e228]
push 0x86
push eax
jmp 0x402b5c
lea ecx, [esp + 0x100]
call fcn.00402c50
jmp 0x402a99
push str.list_T__too_long
call fcn.00405ac0
mov ecx, dword [0x41e228]
push 0
push 0x402190
push 0
push 0x85
push ecx
jmp 0x402b5c
mov edx, dword [0x41e228]
push 0
push 0x4025e0
push 0
push 0x81
push edx
call esi
mov eax, dword [0x41e22c]
cmp eax, 3
jne 0x402af6
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [esp + 0x1d5fc]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00406048
mov esp, ebp
pop ebp
ret 0x10