Function at 0x404800
Capabilities:
Accept command line arguments
Check mutex on windows
Hide graphical window
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x581980]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x144], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x144]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov dword [ebp - 0x2c], esi
xor edx, edx
push esi
mov ebx, 7
mov eax, 0x5641f8
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x28], ebx
mov word [ebp - 0x3c], dx
call fcn.00403af0
cmp dword [ebp - 0x144], 1
jle 0x404a24
mov eax, dword [edi + 4]
push eax
push 0x5648f4
lea eax, [ebp - 0x20]
call fcn.004578e0
sub esp, 0x14
mov ecx, esp
xor edx, edx
mov dword [ebp - 0x140], esp
push edx
lea eax, [ebp - 0x20]
push eax
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], 0
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00402710
lea ecx, [ebp - 0x58]
push ecx
call fcn.004575a0
add esp, 0x20
mov edi, eax
lea esi, [ebp - 0x20]
call fcn.00402120
cmp dword [ebp - 0x44], 8
jb 0x4048c9
mov edx, dword [ebp - 0x58]
push edx
call fcn.004f287e
add esp, 4
sub esp, 0x1c
mov esi, esp
xor eax, eax
xor edi, edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x10], edi
mov dword [ebp - 0x140], esp
mov word [esi], ax
push 1
mov eax, 0x5648fc
call fcn.00403af0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x140], esp
push edi
lea eax, [ebp - 0x20]
xor edx, edx
push eax
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x10], edi
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00402710
lea ebx, [ebp - 0x58]
call fcn.00457290
add esp, 0x38
mov edi, eax
lea esi, [ebp - 0x20]
call fcn.00402120
cmp dword [ebp - 0x44], 8
jb 0x404937
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.004f287e
add esp, 4
mov eax, dword [ebp - 0x10]
push 0x564900
mov edi, 9
lea ecx, [ebp - 0x20]
call fcn.00401f90
test eax, eax
jne 0x404999
call fcn.00403d60
mov esi, 8
cmp dword [ebp - 0xc], esi
jb 0x40496b
mov edx, dword [ebp - 0x20]
push edx
call fcn.004f287e
add esp, 4
xor eax, eax
cmp dword [ebp - 0x28], esi
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
jb 0x40514e
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.004f287e
add esp, 4
jmp 0x40514e
mov eax, dword [ebp - 0x20]
mov ebx, 8
cmp dword [ebp - 0xc], ebx
jae 0x4049a9
lea eax, [ebp - 0x20]
mov ecx, eax
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4049b0
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [ebp - 0x3c]
call fcn.00403af0
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], ebx
jae 0x4049d3
lea eax, [ebp - 0x20]
sub esp, 0x1c
mov esi, esp
xor edx, edx
mov ecx, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x140], esp
mov word [esi], dx
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4049f6
sub ecx, edi
sar ecx, 1
push ecx
call fcn.00403af0
call fcn.00404530
add esp, 0x1c
cmp dword [ebp - 0xc], ebx
jb 0x404a24
mov eax, dword [ebp - 0x20]
push eax
call fcn.004f287e
add esp, 4
call fcn.00403d60
push str.2144NewsClient
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404b10
mov eax, dword [ebp - 0x2c]
push str.reboot
mov edi, 6
lea ecx, [ebp - 0x3c]
call fcn.00401f90
test eax, eax
je 0x404af7
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindow]
push eax
call edi
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov esi, eax
push esi
call ebx
test eax, eax
je 0x40500f
lea ebx, [ebx]
push 0x56425c
push esi
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x404ab3
push 2
push esi
call edi
mov esi, eax
push esi
call ebx
test eax, eax
jne 0x404a90
jmp 0x40500f
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x404ad7
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [ebp - 0x28], 8
jmp 0x404982
push 0
push 0
push 0x46a
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [ebp - 0x28], 8
jmp 0x404982
mov eax, dword [ebp - 0x2c]
push str.reboot
lea ecx, [ebp - 0x3c]
call fcn.00401f90
test eax, eax
jne 0x404b10
mov byte [0x582d2f], al
push 0x74
lea eax, [ebp - 0x13c]
push 0
push eax
call fcn.004f50f0
lea ecx, [ebp - 0x13c]
push ecx
call fcn.00404220
add esp, 0x10
test eax, eax
je 0x404fd7
cmp dword [ebp - 0x13c], 1
jne 0x404fd7
push str.newscfg.ini
call fcn.00457950
push eax
lea edx, [ebp - 0x74]
push edx
call fcn.00402000
push 0x208
call fcn.004f1ede
push 0x104
mov esi, eax
push 0
push esi
call fcn.004f50f0
mov eax, dword [ebp - 0x74]
add esp, 0x1c
cmp dword [ebp - 0x60], 8
jae 0x404b80
lea eax, [ebp - 0x74]
push eax
push 0x104
push esi
push 0x5641f8
push 0x56495c
push str.campaign
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, esi
lea ecx, [ebp - 0xc8]
call fcn.00403be0
push str.NewsSkin.zip
call fcn.00457950
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00402000
lea ecx, [ebp - 0x138]
push ecx
lea ebx, [ebp - 0x58]
call fcn.004570c0
mov edi, dword [eax + 0x10]
mov esi, 8
add esp, 0x10
cmp dword [eax + 0x14], esi
jb 0x404bde
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0xb8]
lea ecx, [ebp - 0xc8]
call fcn.00401f90
test eax, eax
sete bl
cmp dword [ebp - 0x44], esi
jb 0x404c06
mov edx, dword [ebp - 0x58]
push edx
call fcn.004f287e
add esp, 4
test bl, bl
je 0x404e4c
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], esi
jae 0x404c19
lea eax, [ebp - 0x20]
call fcn.00458860
test al, al
jne 0x404c5c
sub esp, 0x1c
lea ecx, [ebp - 0x20]
mov esi, esp
mov dword [ebp - 0x140], esp
call fcn.00402810
sub esp, 0x1c
lea eax, [ebp - 0x100]
mov ebx, esp
mov dword [ebp - 0x140], esp
push eax
call fcn.004570c0
add esp, 4
call fcn.00458a70
add esp, 0x38
mov esi, 8
xor ecx, ecx
mov word [ebp - 0x58], cx
lea ecx, [ebp - 0x58]
push ecx
sub esp, 0x1c
xor edx, edx
mov ecx, esp
mov eax, 7
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], edx
mov dword [ecx + 0x14], eax
mov dword [ebp - 0x140], esp
mov dword [ecx + 0x10], edx
xor eax, eax
push edx
lea edx, [ebp - 0x20]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00402710
call fcn.00458ea0
add esp, 0x20
test al, al
je 0x404f69
lea eax, [ebp - 0x11c]
push eax
lea ebx, [ebp - 0x90]
call fcn.004570c0
mov edi, dword [eax + 0x10]
add esp, 4
cmp dword [eax + 0x14], esi
jb 0x404cc5
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x58]
call fcn.00401f90
test eax, eax
lea esi, [ebp - 0x90]
sete bl
call fcn.00402850
test bl, bl
je 0x404d2e
mov esi, dword [ebp - 0x74]
mov edi, 8
cmp dword [ebp - 0x60], edi
jae 0x404cf5
lea esi, [ebp - 0x74]
lea ecx, [ebp - 0x138]
push ecx
lea ebx, [ebp - 0x90]
call fcn.004570c0
add esp, 4
cmp dword [eax + 0x14], edi
jb 0x404d11
mov eax, dword [eax]
push esi
push eax
push 0x56495c
push str.campaign
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea esi, [ebp - 0x90]
jmp 0x404f5d
sub esp, 0x1c
lea ecx, [ebp - 0x20]
mov esi, esp
mov dword [ebp - 0x140], esp
call fcn.00402810
sub esp, 0x1c
lea edx, [ebp - 0x100]
mov ebx, esp
mov dword [ebp - 0x140], esp
push edx
call fcn.004570c0
add esp, 4
call fcn.00458a70
add esp, 0x38
test al, al
je 0x404f69
lea ecx, [ebp - 0x90]
push ecx
sub esp, 0x1c
xor eax, eax
lea ecx, [ebp - 0x20]
mov esi, esp
mov dword [ebp - 0x7c], 7
mov dword [ebp - 0x80], 0
mov word [ebp - 0x90], ax
mov dword [ebp - 0x140], esp
call fcn.00402810
call fcn.00458ea0
add esp, 0x20
test al, al
je 0x404e3c
lea edx, [ebp - 0x11c]
push edx
lea ebx, [ebp - 0xac]
call fcn.004570c0
mov edi, dword [eax + 0x10]
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x404dcc
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
call fcn.00401f90
test eax, eax
lea esi, [ebp - 0xac]
sete bl
call fcn.00402850
test bl, bl
je 0x404e3c
cmp dword [ebp - 0x60], 8
mov esi, dword [ebp - 0x74]
jae 0x404dfb
lea esi, [ebp - 0x74]
lea eax, [ebp - 0x138]
push eax
lea ebx, [ebp - 0xac]
call fcn.004570c0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x404e18
mov eax, dword [eax]
push esi
push eax
push 0x56495c
push str.campaign
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea esi, [ebp - 0xac]
call fcn.00402850
mov byte [0x5875c0], 1
lea esi, [ebp - 0x90]
call fcn.00402850
jmp 0x404f69
sub esp, 0x1c
mov ecx, esp
xor edx, edx
mov dword [ebp - 0x140], esp
push edx
lea eax, [ebp - 0x20]
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
or eax, 0xffffffff
mov word [ecx], dx
call fcn.00402710
sub esp, 0x1c
lea ecx, [ebp - 0x100]
mov ebx, esp
mov dword [ebp - 0x140], esp
push ecx
call fcn.004570c0
add esp, 4
call fcn.00458a70
add esp, 0x38
test al, al
je 0x404f76
lea eax, [ebp - 0x58]
push eax
sub esp, 0x1c
xor edx, edx
lea ecx, [ebp - 0x20]
mov esi, esp
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], dx
mov dword [ebp - 0x140], esp
call fcn.00402810
call fcn.00458ea0
add esp, 0x20
test al, al
je 0x404f69
lea ecx, [ebp - 0x11c]
push ecx
lea ebx, [ebp - 0xac]
call fcn.004570c0
mov edi, dword [eax + 0x10]
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x404efc
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x58]
call fcn.00401f90
test eax, eax
lea esi, [ebp - 0xac]
sete bl
call fcn.00402850
test bl, bl
je 0x404f69
cmp dword [ebp - 0x60], 8
mov esi, dword [ebp - 0x74]
jae 0x404f28
lea esi, [ebp - 0x74]
lea edx, [ebp - 0x138]
push edx
lea ebx, [ebp - 0xac]
call fcn.004570c0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x404f45
mov eax, dword [eax]
push esi
push eax
push 0x56495c
push str.campaign
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea esi, [ebp - 0xac]
call fcn.00402850
mov byte [0x5875c0], 1
lea esi, [ebp - 0x58]
call fcn.00402850
mov esi, 8
cmp dword [ebp - 0xc], esi
jb 0x404f87
mov eax, dword [ebp - 0x20]
push eax
call fcn.004f287e
add esp, 4
xor edi, edi
xor ecx, ecx
mov ebx, 7
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov word [ebp - 0x20], cx
cmp dword [ebp - 0xb4], esi
jb 0x404fb1
mov edx, dword [ebp - 0xc8]
push edx
call fcn.004f287e
add esp, 4
xor eax, eax
mov dword [ebp - 0xb4], ebx
mov dword [ebp - 0xb8], edi
mov word [ebp - 0xc8], ax
cmp dword [ebp - 0x60], esi
jb 0x404fd7
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.004f287e
add esp, 4
cmp byte [0x5875c0], 0
mov eax, dword [ebp - 0x148]
mov dword [0x5875f4], eax
push eax
je 0x4050c2
call fcn.0041a3a0
add esp, 4
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x40502a
lea esi, [ebp - 0x13c]
call fcn.00405170
cmp dword [ebp - 0x28], 8
jb 0x40514e
mov edx, dword [ebp - 0x3c]
push edx
call fcn.004f287e
add esp, 4
jmp 0x40514e
push 0x408
call fcn.004f294c
add esp, 4
test eax, eax
je 0x40513b
mov edi, eax
call fcn.00401050
mov edi, eax
test edi, edi
je 0x40513b
lea eax, [ebp - 0xe4]
push eax
lea ebx, [ebp - 0xac]
call fcn.004570c0
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x40506d
mov eax, dword [eax]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x140], esp
call fcn.00403be0
push edi
call fcn.00401ef0
lea esi, [ebp - 0xac]
call fcn.00402850
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0x100
push 0x20100
push 0x56439c
push 0
mov eax, edi
call fcn.004114e0
mov ecx, dword [edi + 4]
push 0
push ecx
jmp 0x40512a
call fcn.0041a3a0
add esp, 4
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x405004
push 0x5ac
call fcn.004f294c
add esp, 4
test eax, eax
je 0x40513b
push 0
mov ecx, eax
call fcn.004051f0
mov esi, eax
test esi, esi
je 0x40513b
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0x100
push 0x20100
push 0x56439c
push 0
call fcn.004114e0
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.0040e5e0
call dword [sym.imp.ole32.dll_CoUninitialize]
lea esi, [ebp - 0x13c]
call fcn.00405170
lea esi, [ebp - 0x3c]
call fcn.00402850
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004f2889
mov esp, ebp
pop ebp
ret 0x10