Function at 0x442c40
Capabilities:
Accept command line arguments
Check if file exists
Check mutex on windows
Check os version
Create process on windows
Create thread
Delete file
Get common file path
Get file attributes
Get startup folder
Hide graphical window
Initialize winsock library
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8ac
mov eax, dword [0x508068]
xor eax, esp
mov dword [esp + 0x8a8], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
push edi
push 0
push 0
push 0
call esi
mov edi, dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x50e600], eax
test eax, eax
jne 0x442c93
cmp byte [0x5102e0], 0
je 0x442c93
push 0
push 0x4f4f64
push 0x4f4f78
push 0
call edi
push 0
push 0
push 0
call esi
mov dword [0x50e47c], eax
test eax, eax
jne 0x442cba
cmp byte [0x5102e0], al
je 0x442cba
push eax
push 0x4f4f90
push str.mutex_g_Trackers_request
push eax
call edi
push 0
push 0
push 0
call esi
mov dword [0x50e53c], eax
test eax, eax
jne 0x442ce1
cmp byte [0x5102e0], al
je 0x442ce1
push eax
push 0x4f4fc0
push str.mutex_g_Trackers_request_ssl
push eax
call edi
push 0
push 0
push 0
call esi
mov dword [0x50e5a4], eax
test eax, eax
jne 0x442d08
cmp byte [0x5102e0], al
je 0x442d08
push eax
push 0x4f4ff4
push str.mutex_Peers_Remove
push eax
call edi
push 0
push 0
push 0
call esi
mov dword [0x50e484], eax
test eax, eax
jne 0x442d2f
cmp byte [0x5102e0], al
je 0x442d2f
push eax
push 0x4f501c
push str.mutex_Peers_Remove_Temp
push eax
call edi
push 0
push 0
push 0
call esi
mov dword [0x50e550], eax
test eax, eax
jne 0x442d56
cmp byte [0x5102e0], al
je 0x442d56
push eax
push 0x4f5048
push str.mutex_Peers_Remove_Accept
push eax
call edi
push 0
push 0
push 0
call esi
mov dword [0x50e5b0], eax
test eax, eax
jne 0x442d7d
cmp byte [0x5102e0], al
je 0x442d7d
push eax
push 0x4f5078
push str.mutex_Connect_Peers_Task
push eax
call edi
push 0
push 0
push 0
call esi
mov dword [0x50e494], eax
test eax, eax
jne 0x442da4
cmp byte [0x5102e0], al
je 0x442da4
push eax
push 0x4f50a8
push str.mutex_g_All_peers_accept
push eax
call edi
push 0
push 0
push 0
call esi
mov dword [0x50e4ac], eax
test eax, eax
jne 0x442dcb
cmp byte [0x5102e0], al
je 0x442dcb
push eax
push 0x4f50d8
push 0x4f50ec
push eax
call edi
push 0
push 0
push 0
call esi
mov dword [0x50e4b0], eax
test eax, eax
jne 0x442df2
cmp byte [0x5102e0], al
je 0x442df2
push eax
push 0x4f5100
push str.mutex_g_Peers_UDP_connect
push eax
call edi
push 0
push 0
push 0
call esi
mov dword [0x50e478], eax
test eax, eax
jne 0x442e19
cmp byte [0x5102e0], al
je 0x442e19
push eax
push 0x4f5130
push 0x4f5144
push eax
call edi
push 0
push 0
push 0
call esi
mov dword [0x50e46c], eax
test eax, eax
jne 0x442e40
cmp byte [0x5102e0], al
je 0x442e40
push eax
push 0x4f515c
push 0x4f5170
push eax
call edi
push 0
push 0
push 0
call esi
mov dword [0x50e5f8], eax
test eax, eax
jne 0x442e67
cmp byte [0x5102e0], al
je 0x442e67
push eax
push 0x4f5190
push str.mutex_g_good_nodes
push eax
call edi
mov eax, dword [0x50e5a4]
lea ecx, [esp + 0x2b0]
mov dword [0x50e58c], eax
mov eax, dword [0x50e484]
mov dword [0x50e590], eax
xor eax, eax
push 9
push 0x4f51b8
mov dword [esp + 0x2c8], 0
mov dword [esp + 0x2cc], 7
mov word [esp + 0x2b8], ax
call fcn.00407d10
cmp dword [esp + 0x2c4], 8
lea eax, [esp + 0x2b0]
cmovae eax, dword [esp + 0x2b0]
push eax
push 0x4f51cc
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [0x50e598], eax
call fcn.00442840
mov ecx, dword [0x50e598]
test ecx, ecx
je 0x443243
cmp al, 1
jne 0x44318a
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov edi, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0
push 2
mov byte [esp + 0x1b], al
mov dword [esp + 0x68], 0x22c
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov esi, eax
test esi, esi
je 0x442fa2
lea eax, [esp + 0x60]
push eax
push esi
call ebx
cmp eax, 1
jne 0x442f9b
nop dword [eax]
lea eax, [esp + 0x84]
push 0x4f51e8
push eax
call fcn.004b5e46
add esp, 8
test eax, eax
je 0x442f58
lea eax, [esp + 0x60]
push eax
push esi
call ebx
cmp eax, 1
je 0x442f30
jmp 0x442f9b
push 0
push 0
push 0x10
push dword [0x50e598]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [esp + 0x13], 5
jne 0x442f7e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x442f9b
push dword [esp + 0x68]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esp + 0x13], 5
jne 0x443051
xor eax, eax
nop
xor esi, esi
mov dword [esp + 0x290], eax
push esi
inc eax
push 2
mov dword [esp + 0x1c], eax
call edi
mov edi, eax
test edi, edi
je 0x44300e
lea eax, [esp + 0x60]
push eax
push edi
call ebx
cmp eax, 1
jne 0x443007
nop word [eax + eax]
lea eax, [esp + 0x84]
push str.byTorrent.exe
push eax
call fcn.004b5e46
add esp, 8
test eax, eax
jne 0x442ffa
inc esi
lea eax, [esp + 0x60]
push eax
push edi
call ebx
cmp eax, 1
je 0x442fe0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x290], 0x64
jge 0x443034
cmp esi, 1
jle 0x443051
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
jmp 0x442fb0
cmp byte [0x5102e0], 0
je 0x443051
push 0
push 0x4f5220
push str.insurance
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esp + 0x4a0]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x208
push 0x4f5268
lea eax, [esp + 0x4a8]
push 0x208
push eax
call fcn.004b68c3
add esp, 0x10
mov dword [esp + 0x28], 0
xor eax, eax
mov dword [esp + 0x2c], 7
lea ecx, [esp + 0x18]
mov word [esp + 0x18], ax
push 0xe
push 0x4f5280
call fcn.00407d10
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x4a4]
lea ecx, [esp + 0x298]
call fcn.00450830
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00407cb0
cmp dword [esp + 0x2a8], 8
lea eax, [esp + 0x294]
cmovae eax, dword [esp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x44313b
test al, 1
je 0x44311d
cmp dword [esp + 0x2a8], 8
lea ecx, [esp + 0x294]
cmovae ecx, dword [esp + 0x294]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x2a8], 8
lea eax, [esp + 0x294]
cmovae eax, dword [esp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00442ac0
push 0x208
push 0x4f52a0
lea eax, [esp + 0x4a8]
push 0x208
push eax
call fcn.004b68c3
add esp, 0x10
lea eax, [esp + 0x4a0]
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x294]
call fcn.00407cb0
xor esi, esi
jmp 0x443901
push 9
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x50e598]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [esp + 0x290]
mov dword [esp + 0x290], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov eax, dword [esp + 0x290]
cmp eax, 2
jl 0x443235
mov esi, 1
mov dword [esp + 0x294], 1
cmp eax, esi
jle 0x443235
mov edx, dword [ebx + esi*4]
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4431f0
sub ecx, edi
mov dword [esp + 0x29c], edx
sar ecx, 1
lea eax, [ecx*2 + 2]
mov dword [esp + 0x298], eax
lea eax, [esp + 0x294]
push eax
mov eax, dword [0x50e598]
push eax
push 0x4a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
inc esi
cmp esi, dword [esp + 0x290]
jl 0x4431e1
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor esi, esi
jmp 0x443901
test al, al
je 0x443346
lea eax, [esp + 0x4a0]
push eax
push 0
push 0
push 0x801a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x208
push 0x4f52c0
lea eax, [esp + 0x4a8]
push 0x208
push eax
call fcn.004b68c3
add esp, 0x10
mov dword [esp + 0x28], 0
xor eax, eax
mov dword [esp + 0x2c], 7
lea ecx, [esp + 0x18]
mov word [esp + 0x18], ax
push 0xe
push 0x4f52d8
call fcn.00407d10
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x4a4]
lea ecx, [esp + 0x298]
call fcn.00450830
add esp, 4
lea ecx, [esp + 0x18]
call fcn.00407cb0
cmp dword [esp + 0x2a8], 8
lea eax, [esp + 0x294]
cmovae eax, dword [esp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x443335
test al, 1
je 0x443317
cmp dword [esp + 0x2a8], 8
lea ecx, [esp + 0x294]
cmovae ecx, dword [esp + 0x294]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esp + 0x2a8], 8
lea eax, [esp + 0x294]
cmovae eax, dword [esp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00442ac0
lea ecx, [esp + 0x294]
call fcn.00407cb0
call fcn.0040d4d0
call fcn.0040f120
lea eax, [esp + 0x2c8]
mov dword [esp + 0x2c8], 8
push eax
mov dword [esp + 0x2d0], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
xorps xmm0, xmm0
push 0
movlpd qword [esp + 0x40], xmm0
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
mov dword [esp + 0x60], 0
mov dword [esp + 0x34], 0x30
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0x483a10
call esi
push 0x7f00
push 0
mov dword [esp + 0x4c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x8000
push 0x20
push 0x20
push 1
push 0x32
push 0
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], 0x10
mov dword [esp + 0x70], 0x4f52f8
call esi
mov ebx, dword [sym.imp.USER32.dll_LoadImageW]
push eax
call ebx
push 0x8000
push 0x14
push 0x14
push 1
push 0x32
push 0
mov dword [esp + 0x60], eax
call esi
push eax
call ebx
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
cmp dword [esp + 0x2c4], 8
lea eax, [esp + 0x2b0]
push 0
cmovae eax, dword [esp + 0x2b4]
push 0
push 0
push 0
push dword [0x5102f0]
push dword [0x5102ec]
push dword [0x5102e8]
push dword [0x5102e4]
push 0x6cf0000
push eax
push str.byTorrentMain
push pe_nt_image_headers32
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x50e598], eax
test eax, eax
jne 0x44347d
or esi, 0xffffffff
jmp 0x443901
cmp dword [0x5103fc], 0
jne 0x44348d
push 0x83
jmp 0x443492
push 0x84
push 0
call esi
push eax
call dword [sym.imp.USER32.dll_LoadMenuW]
mov ebx, eax
test ebx, ebx
jne 0x4434bd
cmp byte [0x5102e0], al
je 0x4434bd
push eax
push str.LoadMenu__
push str.error_menu
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
push ebx
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [esp + 0x290], eax
test eax, eax
jne 0x4434eb
cmp byte [0x5102e0], al
je 0x4434eb
push eax
push str.GetSubMenu__
push str.error_submenu
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0x20
push 0
push 0
push 0
push 0x3b
push 0
call esi
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push 0x20
push 0
push 0
push 0
push 0x3d
push 0
mov dword [0x50e548], eax
call esi
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push 0x20
push 0
push 0
push 0
push 0x3c
push 0
mov dword [0x50e538], eax
call esi
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, dword [sym.imp.USER32.dll_SetMenuItemBitmaps]
mov dword [0x50e56c], eax
mov eax, dword [0x50e548]
push eax
push eax
push 0x400
push 0
push dword [esp + 0x2a0]
call esi
mov eax, dword [0x50e538]
push eax
push eax
push 0x400
push 1
push dword [esp + 0x2a0]
call esi
mov eax, dword [0x50e56c]
push eax
push eax
push 0x400
push 3
push dword [esp + 0x2a0]
call esi
push ebx
push dword [0x50e598]
call dword [sym.imp.USER32.dll_SetMenu]
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x48002f
jne 0x4435a6
cmp byte [eax + 4], 0x49
jne 0x4435a6
push 0
jmp 0x4435bf
cmp dword [0x5102e4], 0xfffffffc
jne 0x4435bc
cmp dword [0x5102e8], 0xfffffffc
jne 0x4435bc
push 3
jmp 0x4435bf
push dword [ebp + 0x14]
push dword [0x50e598]
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [esp + 0x310]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jns 0x443609
cmp byte [0x5102e0], 0
je 0x4435ff
push 0
push 0x4f53a4
push str.WSAStartup___failed
push dword [0x50e598]
call edi
mov esi, 1
jmp 0x443901
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 0x2d0]
push eax
push 0
lea eax, [esp + 0x2b4]
mov dword [esp + 0x2b4], 0x309
push eax
push 0x43edf0
push 0
push 0
call esi
mov dword [0x50e4ec], eax
test eax, eax
jne 0x443656
cmp byte [0x5102e0], al
je 0x443656
push eax
push 0x4f53c0
push str.Create_hThread_Server_TCP_UDP_failed
push eax
call edi
lea eax, [esp + 0x2d4]
push eax
push 0
push dword [0x50e598]
push 0x43f2d0
push 0
push 0
call esi
mov dword [0x50e480], eax
test eax, eax
jne 0x443690
cmp byte [0x5102e0], al
je 0x443690
push eax
push 0x4f53f0
push 0x4f5400
push eax
call edi
lea eax, [esp + 0x2d8]
push eax
push 0
push 0
push 0x43f4b0
push 0
push 0
call esi
mov dword [0x50e4e0], eax
test eax, eax
jne 0x4436c6
cmp byte [0x5102e0], al
je 0x4436c6
push eax
push 0x4f541c
push str.Create_id_Thread_Response_Trackers_failed
push eax
call edi
lea eax, [esp + 0x2dc]
push eax
push 0
push 0
push 0x441070
push 0
push 0
call esi
mov dword [0x50e54c], eax
test eax, eax
jne 0x4436fc
cmp byte [0x5102e0], al
je 0x4436fc
push eax
push 0x4f5450
push str.Create_id_Thread_Response_Trackers_ssl_failed
push eax
call edi
lea eax, [esp + 0x2e0]
push eax
push 0
push 0
push 0x42b740
push 0
push 0
call esi
mov dword [0x50e57c], eax
test eax, eax
jne 0x443732
cmp byte [0x5102e0], al
je 0x443732
push eax
push 0x4f5488
push str.Create_hThread_Connect_Peers_failed
push eax
call edi
lea eax, [esp + 0x2e4]
push eax
push 0
push 0
push 0x4417c0
push 0
push 0
call esi
mov dword [0x50e5ac], eax
test eax, eax
jne 0x443768
cmp byte [0x5102e0], al
je 0x443768
push eax
push 0x4f54b4
push str.Create_hThreadNetworkEvent_failed
push eax
call edi
lea eax, [esp + 0x2e8]
push eax
push 0
push dword [0x50e598]
push 0x42b950
push 0
push 0
call esi
mov dword [0x50e470], eax
test eax, eax
jne 0x4437a2
cmp byte [0x5102e0], al
je 0x4437a2
push eax
push 0x4f54e0
push str.Create_Thread_Peer_failed
push eax
call edi
lea eax, [esp + 0x2ec]
push eax
push 0
push dword [0x50e598]
push 0x43acc0
push 0
push 0
call esi
mov dword [0x50e5b4], eax
test eax, eax
jne 0x4437dc
cmp byte [0x5102e0], al
je 0x4437dc
push eax
push 0x4f5504
push str.Create_hThread_Accept_Peers
push eax
call edi
lea eax, [esp + 0x2f0]
push eax
push 0
push dword [0x50e598]
push 0x441af0
push 0
push 0
call esi
mov dword [0x50e5f4], eax
test eax, eax
jne 0x443816
cmp byte [0x5102e0], al
je 0x443816
push eax
push 0x4f5528
push str.Create_hThreadGUI_failed.
push eax
call edi
call fcn.00410b90
call fcn.00410f40
lea eax, [esp + 0x290]
mov dword [esp + 0x290], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov eax, dword [esp + 0x290]
cmp eax, 2
jl 0x443869
mov esi, 1
cmp eax, esi
jle 0x443869
mov ecx, dword [edi + esi*4]
call fcn.00482010
inc esi
cmp esi, dword [esp + 0x290]
jl 0x443857
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push str.MyAccelerators
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x2fc]
push 0
push eax
call esi
test eax, eax
jle 0x4438f4
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop
lea eax, [esp + 0x2f4]
push eax
push dword [esp + 0x18]
push dword [0x50e598]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4438e0
lea eax, [esp + 0x2f4]
push eax
call edi
lea eax, [esp + 0x2f4]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x300]
push eax
call esi
test eax, eax
jg 0x4438b0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, dword [esp + 0x2fc]
lea ecx, [esp + 0x2b0]
call fcn.00407cb0
mov ecx, dword [esp + 0x8b4]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ad19c
mov esp, ebp
pop ebp
ret 0x10