Function at 0x4049a0
Capabilities:
Accept command line arguments
Check mutex on windows
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5a2c
mov eax, dword fs:[0]
push eax
sub esp, 0x7f0
mov eax, dword [0x526060]
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
mov eax, dword [ebp + 8]
push str.wWinMain____r_n
mov dword [ebp - 0x7cc], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.ZZDS_InsClass
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404a2d
push 0x515190
push str.ZZDS_InsClass
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x404da5
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x404da5
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 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 [ebp - 0x2c]
cmp eax, 1
jle 0x404cc2
xor ecx, ecx
mov dword [ebp - 0x14], 7
xor bl, bl
mov dword [ebp - 0x18], 0
mov bh, 1
mov word [ebp - 0x28], cx
lea esi, [ecx + 1]
cmp eax, esi
jle 0x404b09
nop word [eax + eax]
push 0x5151b0
push dword [edi + esi*4]
call fcn.004c6172
add esp, 8
test eax, eax
jne 0x404a98
mov bl, 1
jmp 0x404aff
push 0x5151b8
push dword [edi + esi*4]
call fcn.004c6172
add esp, 8
test eax, eax
jne 0x404ae9
inc esi
cmp esi, dword [ebp - 0x2c]
jge 0x404aff
mov edx, dword [edi + esi*4]
lea ecx, [ebp - 0x7e4]
call fcn.00404880
push eax
lea ecx, [ebp - 0x28]
call fcn.00404dd0
mov eax, dword [ebp - 0x7d0]
cmp eax, 8
jb 0x404aff
inc eax
lea ecx, [ebp - 0x7e4]
push eax
push dword [ebp - 0x7e4]
call fcn.00401e90
jmp 0x404aff
push 0x5151c0
push dword [edi + esi*4]
call fcn.004c6172
add esp, 8
neg eax
sbb al, al
and bh, al
inc esi
cmp esi, dword [ebp - 0x2c]
jl 0x404a80
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test bl, bl
je 0x404c99
cmp dword [ebp - 0x18], 0
je 0x404b32
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.0040bea0
test al, al
jne 0x404ba3
call fcn.00405010
lea eax, [ebp - 0x7e4]
push eax
call fcn.004057d0
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x404b7e
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x404b61
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401e90
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00404ed0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7d0]
cmp eax, 8
jb 0x404ba3
inc eax
lea ecx, [ebp - 0x7e4]
push eax
push dword [ebp - 0x7e4]
call fcn.00401e90
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.0040bea0
test al, al
jne 0x404c49
call fcn.00405010
lea eax, [ebp - 0x7fc]
push eax
call fcn.00405700
mov esi, eax
lea eax, [ebp - 0x28]
cmp eax, esi
je 0x404c07
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x404bea
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401e90
xor eax, eax
mov dword [ebp - 0x14], 7
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00404ed0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x7e8]
cmp eax, 8
jb 0x404c2c
inc eax
lea ecx, [ebp - 0x7fc]
push eax
push dword [ebp - 0x7fc]
call fcn.00401e90
xor eax, eax
mov dword [ebp - 0x7e8], 7
mov dword [ebp - 0x7ec], 0
mov word [ebp - 0x7fc], ax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push ecx
call fcn.00405010
add esp, 4
mov ecx, eax
call fcn.00405950
test bh, bh
je 0x404c7b
sub esp, 8
call fcn.00405010
add esp, 4
mov ecx, eax
call fcn.00405f00
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x404da5
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401e90
jmp 0x404da5
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x404cae
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00401e90
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 3
call fcn.00414040
mov ecx, dword [ebp - 0x7cc]
add esp, 4
call fcn.00404740
push 0x794
lea eax, [ebp - 0x7c8]
push 0
push eax
call fcn.004c40b0
add esp, 0xc
lea ecx, [ebp - 0x7c8]
call fcn.00409030
push 0
push closesocket
push closesocket
push closesocket
push closesocket
push 0x100
push 0x10080000
push 0x515190
push 0
lea ecx, [ebp - 0x7c8]
call fcn.004577a0
lea ecx, [ebp - 0x7c8]
call fcn.00457630
lea ecx, [ebp - 0x7c8]
call fcn.00457c40
call fcn.00414000
call dword [sym.imp.ole32.dll_CoUninitialize]
push str.CMainWnd::CMainWnd____r_n
mov dword [ebp - method.CMainWnd.2.virtual_0], vtable.CMainWnd.2.0
mov dword [ebp - method.CXMLWnd.virtual_0], vtable.CMainWnd.5.0
mov dword [ebp - method.CMainWnd.1.virtual_0], vtable.CMainWnd.1.0
mov dword [ebp - method.DuiLib::WindowImplBase.1.virtual_0], vtable.CMainWnd.3.0
mov dword [ebp - method.CMainWnd.virtual_0], vtable.CMainWnd.0
mov dword [ebp - method.DuiLib::CActiveXFrameWnd.virtual_16], vtable.CMainWnd.4.0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x7c8]
call fcn.00408c30
xor eax, eax
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.00412aed
mov esp, ebp
pop ebp
ret 0x10