Function at 0x401080
Capabilities:
Check if file exists
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x88e4
call fcn.0041feb0
mov eax, dword [0x489004]
xor eax, esp
mov dword [esp + 0x88e0], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
mov esi, 1
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov edx, dword [edi + 4]
test edx, edx
je 0x401108
mov ecx, 0x426cac
mov eax, edx
nop dword [eax]
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x4010f0
test bl, bl
je 0x4010ec
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x4010f0
add eax, 2
add ecx, 2
test bl, bl
jne 0x4010d0
xor eax, eax
jmp 0x4010f5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40115b
mov esi, 2
mov dword [esp + 0x14], 1
xor eax, eax
mov ecx, dword [edi + esi*4]
lea esi, [edi + esi*4]
mov dword [esp + 0x803c], esi
test ecx, ecx
je 0x401252
test eax, eax
jne 0x401220
mov edx, 0x426cb8
mov eax, ecx
nop dword [eax]
mov bl, byte [eax]
cmp bl, byte [edx]
jne 0x4011e3
test bl, bl
je 0x401154
mov bl, byte [eax + 1]
cmp bl, byte [edx + 1]
jne 0x4011e3
add eax, 2
add edx, 2
test bl, bl
jne 0x401130
xor eax, eax
jmp 0x4011e8
mov ecx, 0x426cb0
mov eax, edx
mov bl, byte [eax]
cmp bl, byte [ecx]
jne 0x401182
test bl, bl
je 0x40117e
mov bl, byte [eax + 1]
cmp bl, byte [ecx + 1]
jne 0x401182
add eax, 2
add ecx, 2
test bl, bl
jne 0x401162
xor eax, eax
jmp 0x401187
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40119c
lea esi, [eax + 2]
mov eax, 1
mov dword [esp + 0x18], eax
jmp 0x401108
mov eax, 0x426cb4
mov cl, byte [edx]
cmp cl, byte [eax]
jne 0x4011c1
test cl, cl
je 0x4011bd
mov cl, byte [edx + 1]
cmp cl, byte [eax + 1]
jne 0x4011c1
add edx, 2
add eax, 2
test cl, cl
jne 0x4011a1
xor eax, eax
jmp 0x4011c6
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401106
lea esi, [eax + 2]
mov eax, 1
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
jmp 0x401108
sbb eax, eax
or eax, 1
test eax, eax
je 0x401252
mov eax, 0x426cbc
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x401211
test dl, dl
je 0x40120d
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x401211
add ecx, 2
add eax, 2
test dl, dl
jne 0x4011f1
xor eax, eax
jmp 0x401216
sbb eax, eax
or eax, 1
test eax, eax
je 0x401252
cmp dword [esi + 4], 0
jne 0x401252
push str.Usage:_FBSelect__t___p____v___3264__n
push 2
call fcn.004092fc
add esp, 4
push eax
call fcn.00401010
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88e0]
xor ecx, esp
call fcn.00406f43
mov esp, ebp
pop ebp
ret
push 0x200
lea eax, [esp + 0x84ec]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401272
push str.FBSelect:_Cannot_obtain_the_module_file_name.
jmp 0x401225
mov dl, byte [esp + 0x84e8]
lea ecx, [esp + 0x84e8]
mov edi, ecx
test dl, dl
je 0x401298
cmp dl, 0x5c
mov eax, ecx
mov dl, byte [ecx + 1]
cmovne eax, edi
inc ecx
mov edi, eax
test dl, dl
jne 0x401286
cmp dword [esp + 0x18], 0
mov byte [edi], 0
je 0x401734
lea eax, [esp + 0x88e8]
sub eax, edi
push eax
push str.FrontBase.exe
push edi
call fcn.0040b380
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0xc
cmp dword [esp + 0x1c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_FormatMessageA]
jne 0x401400
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x808c], 1
push eax
push 0x20
movlpd qword [esp + 0x8098], xmm0
movlpd qword [esp + 0x80a0], xmm0
movlpd qword [esp + 0x80a8], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, eax
test esi, esi
jne 0x401345
push eax
push eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push esi
call edi
push eax
push esi
push 0x1100
call ebx
push dword [esp + 0x1c]
push str.FBSelect:_Cannot_open_process_token:__s_n
jmp 0x4013d6
lea eax, [esp + 0x8090]
push eax
push 0x426c30
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
push 0
push 0
test esi, esi
jne 0x401384
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push esi
call edi
push eax
push esi
push 0x1100
call ebx
push dword [esp + 0x14]
push str.FBSelect:_Cannot_lookup_privilege_value:__s_n
jmp 0x4013d6
push 0
lea eax, [esp + 0x8098]
mov dword [esp + 0x8098], 1
push eax
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x80b0], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, eax
test esi, esi
jne 0x4013e9
push eax
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push esi
call edi
push eax
push esi
push 0x1100
call ebx
push dword [esp + 0x10]
push str.FBSelect:_Cannot_adjust_privileges:__s_n
push 2
call fcn.004092fc
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4013f8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4019f7
push 0
push 0x2200000
push 3
push 0
push 3
push 0x80000000
lea eax, [esp + 0x8500]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
cmp eax, 0xffffffff
jne 0x401452
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
call edi
push eax
push 0
push 0x1100
call ebx
push dword [esp + 0x10]
push str.FBSelect:_Open_link_for_reading:__s_n
jmp 0x40159d
lea ecx, [esp + 0x8040]
push ecx
push 0x8014
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0x900a8
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40149f
push eax
push eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0
call edi
push eax
push 0
push 0x1100
call ebx
push dword [esp + 0x10]
push str.FBSelect:_Cannot_read_reparse_data:__s_n
jmp 0x40159d
mov eax, dword [esp + 0x20]
cmp eax, 0xa000000c
jne 0x4015f0
push str.Symbolic_link_n
push 2
call fcn.004092fc
add esp, 4
push eax
call fcn.00401010
add esp, 8
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x80e8]
lea ecx, [esp + 0x34]
push 0
push 0
push 0x3ff
push eax
movzx eax, word [esp + 0x3a]
shr eax, 1
push eax
movzx eax, word [esp + 0x3c]
shr eax, 1
lea eax, [ecx + eax*2]
push eax
push 0
push 0xfde9
call esi
cmp eax, 0x400
jae 0x401a0e
mov byte [esp + eax + 0x80e8], 0
lea eax, [esp + 0x80e8]
push eax
push str.__Substitute___s_n
push 2
call fcn.004092fc
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
lea eax, [esp + 0x80e8]
lea ecx, [esp + 0x34]
push 0
push 0
push 0x3ff
push eax
movzx eax, word [esp + 0x3e]
shr eax, 1
push eax
movzx eax, word [esp + 0x40]
shr eax, 1
lea eax, [ecx + eax*2]
push eax
push 0
push 0xfde9
call esi
cmp eax, 0x400
jae 0x401a0e
mov byte [esp + eax + 0x80e8], 0
lea eax, [esp + 0x80e8]
push eax
push str.__Print________s_n
push 2
call fcn.004092fc
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push dword [esp + 0x30]
push str.__Flags________08x_n
push 2
call fcn.004092fc
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push 0x400
lea edx, [esp + 0x80ec]
lea ecx, [esp + 0x84ec]
call fcn.00401cfc
push 2
mov esi, eax
call fcn.004092fc
add esp, 8
test esi, esi
je 0x4016b7
push esi
push str.__Old_link_____s_n
push eax
call fcn.00401010
add esp, 0xc
jmp 0x4016c5
cmp eax, 0xa0000003
jne 0x4015b0
push 0
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [esp + 0x80ec]
push 0
push 0x3ff
push eax
movzx eax, word [esp + 0x3a]
lea ecx, [esp + 0x40]
shr eax, 1
push eax
movzx eax, word [esp + 0x3c]
shr eax, 1
lea eax, [ecx + eax*2]
push eax
push 0
push 0xfde9
call esi
cmp eax, 0x400
jae 0x401a0e
mov byte [esp + eax + 0x80e8], 0
lea eax, [esp + 0x80e8]
push eax
push str.__Substitute___s_n
push 2
call fcn.004092fc
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
lea eax, [esp + 0x80e8]
lea ecx, [esp + 0x30]
push 0
push 0
push 0x3ff
push eax
movzx eax, word [esp + 0x3e]
shr eax, 1
push eax
movzx eax, word [esp + 0x40]
shr eax, 1
lea eax, [ecx + eax*2]
push eax
push 0
push 0xfde9
call esi
cmp eax, 0x400
jae 0x401a0e
mov byte [esp + eax + 0x80e8], 0
lea eax, [esp + 0x80e8]
push eax
push str.__Print________s_n
jmp 0x40159d
push str.___Not_an_old_link_n
push eax
call fcn.00401010
add esp, 8
push ecx
lea edx, [esp + 0x80ec]
lea ecx, [esp + 0x84ec]
call fcn.00401da8
push 2
mov esi, eax
call fcn.004092fc
add esp, 8
test esi, esi
je 0x40170f
push esi
push str.__Resolved_____s_n
push eax
call fcn.00401010
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88e0]
xor ecx, esp
call fcn.00406f43
mov esp, ebp
pop ebp
ret
push str.___Not_an__link_n
push eax
call fcn.00401010
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88e0]
xor ecx, esp
call fcn.00406f43
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x84e8]
xor ebx, ebx
push eax
push str._sFrontBase64.exe__silent
lea eax, [esp + 0x80f0]
push 0x400
push eax
call fcn.00401040
add esp, 0x10
cmp dword [esp + 0x14], ebx
je 0x40177e
lea eax, [esp + 0x80e8]
push eax
push str.FBSelect:_Launching__s_n
push 2
call fcn.004092fc
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
lea eax, [esp + 0x8040]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [esp + 0x808c]
push eax
lea eax, [esp + 0x8044]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x8108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x401832
push 0xffffffffffffffff
push dword [esp + 0x8090]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x8090]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401812
mov eax, dword [esp + 0x1c]
xor ebx, ebx
test eax, eax
sete bl
cmp dword [esp + 0x14], 0
je 0x401812
push eax
push str.FBSelect:_Exit_code__d_n
push 2
call fcn.004092fc
add esp, 4
push eax
call fcn.00401010
add esp, 0xc
push dword [esp + 0x808c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x8090]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40187b
cmp dword [esp + 0x14], ebx
je 0x40187b
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebx
push eax
push 0
call esi
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [esp + 0x10]
lea eax, [esp + 0x80ec]
push eax
push str.FBSelect:_Cannot_launch__s.__s
push 2
call fcn.004092fc
add esp, 4
push eax
call fcn.00401010
add esp, 0x10
lea eax, [esp + 0x88e8]
sub eax, edi
push eax
push str.FrontBase.exe
push edi
call fcn.0040b380
add esp, 0xc
lea eax, [esp + 0x84e8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4018f8
call esi
cmp eax, 2
je 0x4018f8
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
call esi
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [esp + 0x10]
lea eax, [esp + 0x84ec]
push eax
push str.FBSelect:_Cannot_delete_symbolic_link__s._Error__s_n
push 2
call fcn.004092fc
add esp, 4
push eax
call fcn.00401010
add esp, 0x10
jmp 0x401238
test ebx, ebx
je 0x401940
mov eax, dword [esp + 0x803c]
mov eax, dword [eax]
test eax, eax
je 0x401939
mov ecx, 0x426cbc
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401930
test dl, dl
je 0x40192c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401930
add eax, 2
add ecx, 2
test dl, dl
jne 0x401910
xor eax, eax
jmp 0x401935
sbb eax, eax
or eax, 1
test eax, eax
jne 0x401940
mov eax, str..FrontBase64.exe
jmp 0x401945
mov eax, str..FrontBase32.exe
push 0x40
push eax
lea eax, [esp + 0x80b0]
push eax
call fcn.0040b380
add esp, 0xc
lea eax, [esp + 0x80a8]
push 0
push eax
lea eax, [esp + 0x84f0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateSymbolicLinkA]
test al, al
jne 0x4019c8
push 0
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
call esi
push eax
push 0
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [esp + 0x10]
lea eax, [esp + 0x80ac]
push eax
lea eax, [esp + 0x84f0]
push eax
push str.FBSelect:_Cannot_create_symbolic_link__s_____s._Error__s_n
push 2
call fcn.004092fc
add esp, 4
push eax
call fcn.00401010
add esp, 0x14
jmp 0x401238
cmp dword [esp + 0x14], 0
je 0x4019f7
lea eax, [esp + 0x80a8]
push eax
lea eax, [esp + 0x84ec]
push eax
push str.FBSelect:_Symbolic_link__s_____s_was_created_n
push 2
call fcn.004092fc
add esp, 4
push eax
call fcn.00401010
add esp, 0x10
mov ecx, dword [esp + 0x88ec]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00406f43
mov esp, ebp
pop ebp
ret
call fcn.00407078
int3