Function at 0x479842
Capabilities:
Hide graphical window

Disassembly:
pop eax
add eax, 0x4fb
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x3ec]
mov dword [ebp - 0x1c], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.DLL_LoadIconA]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], eax
push 0x7f00
push 0
call dword [fcn.0043b000]
mov dword [ebp - 0x14], eax
push 0
call dword [sym.imp.GDI32.DLL_GetStockObject]
mov dword [ebp - 0x10], eax
call 0x479724
push eax
dec edi
push edi
inc ebp
push edx
inc edi
push edx
inc ecx
push eax
dec eax
add byte [edi + 0x458df845], cl
rcl byte [eax - 1]
adc eax, fcn.0043b000
test eax, eax
je 0x479954
mov dword [ebx + 0x274], eax
test dword [ebp + 0x10], 0xffffffff
jne 0x479764
or dword [ebp + 0x10], 0x808a0000
mov ecx, dword [ebp + 0x28]
jecxz 0x479764
test dword [ecx - 4], 0xffffffff
je 0x479764
or dword [ebp + 0x10], 0xc00000
push 0
push dword [ebx + 0x3ec]
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push dword [ebp + 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0x28]
call 0x479787
sub dword [esp], 0x6e
push 0
call dword [sym.imp.USER32.DLL_CreateWindowExA]
xor ecx, ecx
mov edx, eax
test edx, edx
je 0x479954
push ebx
mov eax, 0x80004002
xor ebx, ebx
call fcn.00473e55
pop ebx
mov eax, 0
jb 0x479954
mov esi, ecx
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x8c], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x58], eax
mov dword [esi + 0x14], 5
mov dword [esi + 0xc], 0x80004402
mov eax, dword [esi + 4]
call fcn.00472b6e
push ecx
push eax
mov eax, dword [esi + 4]
call fcn.00472b83
pop edx
sub eax, edx
pop edx
sub ecx, edx
add dword [ebp + 0x18], ecx
add dword [ebp + 0x14], eax
mov ecx, 0x71c
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push dword [ebp + 0x20]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push 0
push dword [ebx + 0x3ec]
push 0
push dword [esi + 4]
push dword [esi + 0x58]
push dword [esi + 0x54]
push 0
push 0
push 0x5000010d
push 0
call 0x479842
push ebx
push esp
inc ecx
push esp
dec ecx
inc ebx
add byte [edx], ch
call dword [sym.imp.USER32.DLL_CreateWindowExA]
test eax, eax
je 0x479954
push ebx
mov edx, eax
mov eax, 0x20000802
mov ebx, 0xe
mov ecx, dword [esi + 4]
call fcn.00473e55
pop ebx
mov eax, 0
jb 0x479954
mov edi, ecx
push 0xfffffffffffffffc
push dword [edi + 4]
call dword [sym.imp.USER32.DLL_GetWindowLongA]
mov dword [edi + 0x84], eax
call 0x47988b
add dword [esp], 0x165
push 0xfffffffffffffffc
push dword [edi + 4]
call dword [sym.imp.USER32.DLL_SetWindowLongA]
push dword [edi + 4]
call dword [sym.imp.USER32.DLL_GetDC]
test eax, eax
je 0x479954
push eax
push eax
push eax
mov eax, dword [edi + 4]
call fcn.00472b6e
mov dword [edi + 0x54], ecx
mov dword [edi + 0x58], eax
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov dword [edi + 0x3c], eax
pop eax
push dword [edi + 0x58]
push dword [edi + 0x54]
push eax
call dword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
push eax
push dword [edi + 0x3c]
call dword [sym.imp.GDI32.DLL_SelectObject]
mov dword [edi + 0x40], eax
push 0xf
call dword [sym.imp.USER32.DLL_GetSysColorBrush]
push dword [edi + 0x58]
push dword [edi + 0x54]
push 0
push 0
mov edx, esp
push eax
push edx
push dword [edi + 0x3c]
call dword [sym.imp.USER32.DLL_FillRect]
add esp, 0x10
push dword [edi + 4]
call dword [sym.imp.USER32.DLL_ReleaseDC]
call fcn.00472bb8
push dword [edi + 0x70]
push dword [edi + 0x3c]
call dword [sym.imp.GDI32.DLL_SetTextColor]
push dword [edi + 0x74]
push dword [edi + 0x3c]
call dword [sym.imp.GDI32.DLL_SetBkColor]
push 2
push dword [edi + 0x3c]
call dword [sym.imp.GDI32.DLL_SetBkMode]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.DLL_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.DLL_SetFocus]
mov dword [edi + 0x7c], 0
mov eax, dword [esi + 4]
mov edx, dword [ebp + 0x24]
mov dword [edx], eax
test eax, eax
je 0x4799e8
sub esp, 0x1c
mov esi, 1
mov eax, esp
push 1
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.DLL_PeekMessageA]
test eax, eax
jne 0x4799ca
mov eax, 1
call fcn.004790d5
dec esi
jne 0x479969
mov ecx, 0xffffffff
xchg dword [ebx + 0x278], ecx
jecxz 0x4799a1
or dword [edi + 0xc], 0x40000
jmp 0x479964
test dword [edi + 0xc], 0x20000
jne 0x4799b1
call fcn.00478fdc
jmp 0x479964
test dword [edi + 0xc], 0x200
jne 0x4799c3
xchg edi, ebx
call fcn.00478f89
xchg edi, ebx
call fcn.00478fdc
jmp 0x479964
cmp dword [esp + 4], 0x12
je 0x4799e1
push esp
call dword [sym.imp.USER32.DLL_TranslateMessage]
push esp
call dword [sym.imp.USER32.DLL_DispatchMessageA]
jmp 0x479964
mov eax, dword [esp + 8]
add esp, 0x1c
mov esp, ebp
pop ebp
pop edi
pop esi
ret 0x24