Function at 0x41f840
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x30]
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
xor eax, eax
push fcn.0041f820
push ebp
push 0x40bda0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov dword [0xafae40], eax
mov eax, dword [ebp - 8]
mov dword [0xafae80], eax
mov eax, dword [ebp - 0xc]
mov dword [0xafae90], eax
mov eax, dword [ebp + 0x18]
mov dword [0xafaea0], eax
mov eax, dword [ebp + 0x14]
mov dword [0xafaeb0], eax
mov esi, dword [ebp + 8]
mov edi, 0xafae50
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xc]
mov dword [0xafae70], eax
mov byte [0xafaec0], 6
mov eax, dword [0xafad50]
lea eax, [eax - 0x14]
mov dword [0xafad70], eax
mov eax, dword [0xafad60]
lea eax, [eax - 0x50]
mov dword [0xafad80], eax
push dword [0xafaeb0]
mov ecx, dword [0xafaea0]
mov edx, dword [0xafae90]
mov eax, dword [0xafae80]
call fcn.0041f180
mov eax, dword [0xafad90]
mov dword [0xafad10], eax
mov eax, dword [0xafada0]
lea eax, [eax + 0x28]
mov dword [0xafad20], eax
mov eax, dword [0xafad10]
mov edx, dword [0xafad90]
sub eax, edx
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [0xafadb0], eax
mov eax, dword [0xafad20]
mov edx, dword [0xafada0]
sub eax, edx
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [0xafadc0], eax
mov dword [ebp - 0x28], 0xcf0000
push 0
push 0
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp + 0x10]
mov cx, 0
mov edx, 0x1d
call fcn.00404600
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.004176c0
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x14]
mov edx, str.DOS33_Core2:
call fcn.00403d10
mov eax, dword [0xafad50]
mov edx, dword [0xafad10]
sub eax, edx
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [ebp - 0x24], eax
mov eax, dword [0xafad60]
mov edx, dword [0xafad20]
sub eax, edx
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [ebp - 0x20], eax
mov eax, dword [0xafad50]
mov edx, dword [0xafad10]
sub eax, edx
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
add eax, dword [0xafad10]
mov dword [ebp - 0x1c], eax
mov eax, dword [0xafad60]
mov edx, dword [0xafad20]
sub eax, edx
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
add eax, dword [0xafad20]
mov dword [ebp - 0x18], eax
push 0
push 0
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_AdjustWindowRectEx
push 0
push 0x400000
push 0
push 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
sub eax, edx
lea eax, [eax + 1]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
sub eax, edx
lea eax, [eax + 1]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
push eax
mov eax, str.dos33c2
push eax
push 8
call sub.user32.dll_CreateWindowExA
mov dword [0xafae00], eax
push 1
push dword [0xafae00]
call sub.user32.dll_ShowWindow
push dword [0xafae00]
call sub.user32.dll_UpdateWindow
push dword [0xafae00]
call sub.user32.dll_SetActiveWindow
push dword [0xafae00]
call sub.user32.dll_BringWindowToTop
jmp 0x41fa84
push 0xafae10
call sub.user32.dll_TranslateMessage
push 0xafae10
call sub.user32.dll_DispatchMessageA
push 0
push 0
push 0
push 0xafae10
call sub.user32.dll_GetMessageA
test eax, eax
jne 0x41fa9a
jmp 0x41fab1
cmp byte [0xafaec0], 6
sete al
movzx eax, al
neg eax
test eax, eax
jne 0x41faaf
jmp 0x41fab1
jmp 0x41fa70
jmp 0x41fab3
push dword [0xafae00]
call sub.user32.dll_DestroyWindow
mov al, byte [0xafaec0]
mov byte [ebp - 0x10], al
jmp 0x41fac8
xor edx, edx
pop eax
add esp, 0xc
mov dword fs:[edx], eax
mov eax, ebp
call fcn.0041f820
mov al, byte [ebp - 0x10]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14