Function at 0x404548
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x90
mov dword [esp + 8], 0x30
mov dword [esp + 4], 0
lea eax, [ebp - 0x3c]
mov dword [esp], eax
call sym._memset
mov eax, dword [0x438044]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], str.ew::dashboard
mov dword [ebp - 0x34], dbg.WinDashboardProc
mov dword [ebp - 0x3c], 0x30
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call eax
sub esp, 4
mov dword [esp + 4], 0xb
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_LoadIconW]
call eax
sub esp, 8
mov dword [ebp - 0x24], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call eax
sub esp, 4
mov dword [esp + 4], 0xb
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_LoadIconW]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_LoadCursorW]
call eax
sub esp, 8
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 1
lea eax, [ebp - 0x3c]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_RegisterClassExW]
call eax
sub esp, 4
test ax, ax
jne 0x40465f
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x42d56c
mov dword [esp + 4], str.An_error_occured_while_loading_app__Please_try_again_
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxW]
call eax
sub esp, 0x10
mov eax, 0xffffffff
jmp 0x4048b2
mov dword [esp + 0xc], 0
lea eax, [ebp - 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x30
mov eax, dword [sym.imp.USER32.dll_SystemParametersInfoW]
call eax
sub esp, 0x10
mov eax, dword [0x438044]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x48]
mov esi, ecx
sub esi, edx
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
sub ecx, edx
mov ebx, dword [0x438044]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10a0000
mov dword [esp + 8], str.e_Wings__v0.2.4_
mov dword [esp + 4], str.ew::dashboard
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_CreateWindowExW]
call eax
sub esp, 0x30
mov dword [ebx + 0x2c], eax
mov eax, dword [0x438044]
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetSystemMenu]
call eax
sub esp, 8
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf010
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DeleteMenu]
call eax
sub esp, 0xc
mov eax, dword [0x438044]
mov edx, dword [eax + 4]
mov eax, dword [0x438044]
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
call dbg.ew_win_orderitem_init
test eax, eax
jne 0x404773
call dbg.ew_win_order_init
test eax, eax
je 0x40479c
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x42d56c
mov dword [esp + 4], str.Failed_to_initialize_order_items_
mov dword [esp], 0
mov eax, dword [sym.imp.USER32.dll_MessageBoxW]
call eax
sub esp, 0x10
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov dword [eax + 0x38], dbg.handleIncomingOrder
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov dword [eax + 0x3c], dbg.handleIncomingServiceOrder
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
jmp 0x404855
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.eboros_account_loadSettings
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x2c]
test ax, ax
je 0x40480e
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov dword [esp + 8], 1
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.eboros_account_setOpenStatus
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.eboros_account_loadProducts
test eax, eax
je 0x404835
mov dword [esp], 0x42d7e0
call sym._printf_2
mov eax, dword [0x438044]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call dbg.eboros_order_listen
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4047cc
jmp 0x404881
lea eax, [ebp - 0x68]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_TranslateMessage]
call eax
sub esp, 4
lea eax, [ebp - 0x68]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_DispatchMessageW]
call eax
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x68]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetMessageW]
call eax
sub esp, 0x10
test eax, eax
jne 0x404861
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret