Function at 0x422940
Capabilities:
Accept command line arguments
Check mutex on windows
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4a3140]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push eax
mov dword [ebp - 0x254], eax
xor esi, esi
mov dword [ebp - 0x248], ebx
call dword [sym.imp.DuiLib_u.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetInstance_struct_HINSTANCE____]
add esp, 4
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x422bc0
push str.WeatherForecast
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x422bc0
push 0x206
lea ecx, [ebp - 0x20a]
xor eax, eax
push esi
push ecx
mov word [ebp - 0x20c], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x422a9c
xor eax, eax
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x422a00
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea ecx, [ebp - 0x228]
call fcn.004042f0
push 0xd8
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
add esp, 4
cmp edi, esi
je 0x422a6a
cmp dword [ebp - 0x214], 8
mov eax, dword [ebp - 0x228]
jae 0x422a4b
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x244]
call fcn.00404290
lea edx, [ebp - 0x244]
push edx
mov ebx, 1
call fcn.0044a7a1
jmp 0x422a6c
xor eax, eax
mov dword [0x52bc04], eax
test bl, 1
je 0x422a81
lea ecx, [ebp - 0x244]
call fcn.00424c60
cmp dword [ebp - 0x214], 8
jb 0x422acb
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
jmp 0x422acb
push 0x206
push str.wWinMain
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x250], esp
push str.__s::_d_GetTempPath_fail._r_n
call fcn.00404290
push 1
call fcn.00422cc0
push eax
call fcn.0042d610
add esp, 0x2c
lea ecx, [ebp - 0x24c]
push ecx
mov dword [ebp - 0x24c], esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
mov eax, dword [ebp - 0x24c]
lea edi, [ebp - 0x250]
call fcn.0042e320
call fcn.00422c70
mov edx, dword [ebp - 0x250]
mov dword [eax], edx
call fcn.0041fe40
mov esi, eax
call fcn.00402110
call fcn.0041fe40
mov ecx, dword [eax]
mov esi, dword [sym.imp.DuiLib_u.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
call esi
mov edi, dword [ebp - 0x254]
push eax
mov ecx, edi
call fcn.004040e0
call fcn.0041fe40
mov ecx, dword [eax]
call esi
push 0x3bc
xor ebx, ebx
push ebx
push 0x52b460
mov esi, eax
call sub.MSVCR100.dll_memset
lea eax, [ebp - 0x248]
push eax
push ebx
push ebx
push 0x4222b0
push ebx
push ebx
mov dword [0x52bae8], ebx
mov dword [0x52bae0], edi
mov dword [0x52bae4], esi
mov dword [ebp - 0x248], ebx
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x24
call fcn.0041fe40
mov ecx, dword [eax]
push 1
push ebx
call dword [sym.imp.DuiLib_u.dll_public:_void___thiscall_DuiLib::CWindowWnd::ShowWindow_bool__bool_]
call dword [sym.imp.DuiLib_u.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::MessageLoop_void_]
mov esi, dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
push 0x52c898
push 2
call esi
push 0x52b460
push 2
call esi
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.0041fe40
cmp eax, ebx
je 0x422bc0
mov esi, eax
call fcn.00422be0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00456bde
mov esp, ebp
pop ebp
ret 0x10