Function at 0x41f240
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47c6fc
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4a3140]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x4a3140]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [esp + 0x1c], ebx
cmp eax, 0x590
ja 0x41f48d
je 0x41f3b8
sub eax, 0x113
je 0x41f334
sub eax, 0x419
je 0x41f37c
dec eax
jne 0x41f57d
mov eax, dword [ebp + 0x10]
cmp eax, 5
jne 0x41f2f5
call dword [sym.imp.DuiLib_u.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x41f2e4
mov eax, dword [ebx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x41f57d
push 1
push 1
mov ecx, ebx
call dword [sym.imp.DuiLib_u.dll_public:_void___thiscall_DuiLib::CWindowWnd::ShowWindow_bool__bool_]
jmp 0x41f57d
cmp eax, 6
jne 0x41f57d
call fcn.00422c70
cmp dword [eax + 4], 1
jne 0x41f316
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x41f57d
push 1
push 0
mov ecx, ebx
call dword [sym.imp.DuiLib_u.dll_public:_void___thiscall_DuiLib::CWindowWnd::ShowWindow_bool__bool_]
push 0x52c898
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
jmp 0x41f57d
cmp edi, 1
jne 0x41f360
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x52c1e8
call fcn.00401180
mov ecx, 0x52c1b0
call fcn.0040e3a0
mov byte [0x52c825], al
jmp 0x41f57d
cmp edi, 2
jne 0x41f37c
movzx eax, byte [0x52c825]
mov edx, dword [ebx]
mov edx, dword [edx + 0x8c]
push eax
call edx
jmp 0x41f57d
cmp dword [ebp + 0x10], 0x204
jne 0x41f57d
call fcn.0041fe40
mov ecx, dword [eax + 8]
call dword [sym.imp.DuiLib_u.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41f57d
call fcn.0041fe40
mov ebx, dword [eax + 8]
call fcn.00404010
jmp 0x41f579
mov eax, dword [ebp + 0x10]
cmp eax, 0x204
je 0x41f3d4
cmp eax, 0x201
je 0x41f3d4
cmp eax, 0x203
jne 0x41f57d
cmp dword [0x52bae8], 0
je 0x41f57d
push 0x52b460
push 2
mov dword [0x52bae8], 0
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
call fcn.0041fe40
mov esi, dword [eax + 0xc]
test esi, esi
je 0x41f57d
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x10
call ebx
push 0x11
mov dword [esp + 0x24], eax
call ebx
mov ebx, eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call dword [sym.imp.DuiLib_u.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
push 0x45
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
sar ecx, 1
sub ecx, dword [esp + 0x1c]
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x1c], eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
sub eax, dword [esp + 0x1c]
push 0
push 0
add eax, 0x14
push eax
push ecx
push 0
mov ecx, esi
call dword [sym.imp.DuiLib_u.dll_public:_struct_HWND______thiscall_DuiLib::CWindowWnd::GetHWND_void_const]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x41f579
sub eax, 0x7e9
je 0x41f4fd
dec eax
jne 0x41f57d
push str.edt_winmain_city
lea ecx, [ebx + 0x2c]
call dword [sym.imp.DuiLib_u.dll_public:_class_DuiLib::CControlUI____thiscall_DuiLib::CPaintManagerUI::FindControl_wchar_t_const__const]
test eax, eax
je 0x41f4c3
cmp dword [edi + 0x14], 8
jb 0x41f4b7
mov ecx, dword [edi]
jmp 0x41f4b9
mov ecx, edi
mov edx, dword [eax]
push ecx
mov ecx, eax
mov eax, dword [edx + 0x2c]
call eax
test edi, edi
je 0x41f57d
cmp dword [edi + 0x14], 8
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x41f4df
mov ecx, dword [edi]
push ecx
call esi
add esp, 4
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push edi
mov word [edi], dx
call esi
add esp, 4
jmp 0x41f57d
cmp dword [edi + 0x14], 8
mov byte [esp + 0x17], 1
jb 0x41f50c
mov eax, dword [edi]
jmp 0x41f50e
mov eax, edi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x3c]
call dword [sym.imp.DuiLib_u.dll_public:_void___thiscall_DuiLib::CDuiString::constructor_wchar_t_const___int_]
xor ebx, ebx
mov dword [esp + 0xd0], ebx
call fcn.0041fe40
mov esi, dword [eax + 4]
lea ecx, [esp + 0x17]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.00424280
lea ecx, [esp + 0x34]
mov dword [esp + 0xd0], 0xffffffff
call dword [sym.imp.DuiLib_u.dll_public:_void___thiscall_DuiLib::CDuiString::destructor_void_]
cmp dword [edi + 0x14], 8
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x41f564
mov eax, dword [edi]
push eax
call esi
add esp, 4
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
push edi
mov word [edi], cx
call esi
add esp, 4
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push edx
push edi
push eax
mov ecx, ebx
call dword [sym.imp.DuiLib_u.dll_public_virtual:_long_int___thiscall_DuiLib::WindowImplBase::HandleMessage_unsigned_int__unsigned_int__long_int_]
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00456bde
mov esp, ebp
pop ebp
ret 0xc