Function at 0x49c470
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [ebp + 0x1c], 0
push ebx
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, ecx
je 0x49c4a9
push 0
push str.ATLASSERT
mov edx, 0xa3
mov ecx, str.CMainDialog::ProcessWindowMessage
call fcn.0049b960
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, dword [ebp + 0xc]
cmp edx, 0x110
jne 0x49c4cc
sub esp, 0x10
call fcn.004a2b30
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov ebx, dword [ebp + 0x14]
cmp edx, 2
jne 0x49c535
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
sub esp, 0xc
call fcn.004a3460
cmp dword [esp + 0xc], 0
mov dword [esi], eax
jne 0x49caf1
mov edx, dword [ebp + 0xc]
lea ecx, [edi + 0x28]
cmp edx, 2
jne 0x49ca5a
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
sub esp, 0xc
call fcn.004b5ce0
cmp dword [esp + 0xc], 0
mov dword [esi], eax
je 0x49c49e
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edx, 0x112
jne 0x49c56c
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
mov eax, dword [ebp + 0x10]
push ecx
push eax
push ecx
call fcn.004a3580
cmp dword [esp + 0xc], 0
mov dword [esi], eax
je 0x49c4f6
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edx, 0x312
jne 0x49c590
sub esp, 8
push dword [ebp + 0x10]
push ecx
call fcn.004a4810
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edx, 0x7b
jne 0x49c5b2
push ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
call fcn.004b0ef0
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edx, 0x111
jne 0x49c94e
mov eax, dword [ebp + 0x10]
movzx ecx, ax
mov eax, 1
cmp ax, cx
jne 0x49c5e6
sub esp, 0x10
call fcn.004a4800
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 2
cmp ax, cx
je 0x49c5ce
mov eax, 4
cmp ax, cx
jne 0x49c616
sub esp, 8
push eax
push ecx
mov ecx, edi
call fcn.004a60d0
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x3f4
cmp ax, cx
jne 0x49c63a
sub esp, 0x10
mov ecx, edi
call fcn.004a9d80
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 5
cmp ax, cx
jne 0x49c660
sub esp, 8
push eax
push ecx
mov ecx, edi
call fcn.004a60d0
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x3ec
cmp ax, cx
jne 0x49c684
sub esp, 0x10
mov ecx, edi
call fcn.004a4910
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x3ed
cmp ax, cx
jne 0x49c6a8
sub esp, 0x10
mov ecx, edi
call fcn.004aa3f0
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x3f2
cmp ax, cx
jne 0x49c6cc
sub esp, 0x10
mov ecx, edi
call fcn.004a5520
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x400
cmp ax, cx
jne 0x49c6f0
sub esp, 0x10
mov ecx, edi
call fcn.004a54b0
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x402
cmp ax, cx
jne 0x49c714
sub esp, 0x10
mov ecx, edi
call fcn.004a5460
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x401
cmp ax, cx
jne 0x49c738
sub esp, 0x10
mov ecx, edi
call fcn.004a54d0
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x41a
cmp ax, cx
jne 0x49c75c
sub esp, 0x10
mov ecx, edi
call fcn.004a80d0
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x42b
cmp ax, cx
jne 0x49c77e
sub esp, 0x10
call fcn.004a9540
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x9c4a
cmp ax, cx
jne 0x49c7a4
sub esp, 8
push eax
push ecx
mov ecx, edi
call fcn.004b0840
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x9c47
cmp ax, cx
jne 0x49c7ca
sub esp, 8
push eax
push ecx
mov ecx, edi
call fcn.004b0840
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x9c4b
cmp ax, cx
jne 0x49c7f0
sub esp, 8
push eax
push ecx
mov ecx, edi
call fcn.004b0840
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x9c48
cmp ax, cx
jne 0x49c816
sub esp, 8
push eax
push ecx
mov ecx, edi
call fcn.004b0840
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x9c49
cmp ax, cx
jne 0x49c83c
sub esp, 8
push eax
push ecx
mov ecx, edi
call fcn.004b0840
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x9c4d
cmp ax, cx
jne 0x49c862
sub esp, 8
push eax
push ecx
mov ecx, edi
call fcn.004b0840
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x9c53
cmp ax, cx
jne 0x49c888
sub esp, 8
push eax
push ecx
mov ecx, edi
call fcn.004b0840
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x9c54
cmp ax, cx
jne 0x49c8ae
sub esp, 8
push eax
push ecx
mov ecx, edi
call fcn.004b0840
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x9c55
cmp ax, cx
jne 0x49c8d4
sub esp, 8
push eax
push ecx
mov ecx, edi
call fcn.004b0840
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x9c4f
cmp ax, cx
je 0x49c66a
mov eax, 0x9c51
cmp ax, cx
je 0x49c68e
mov eax, 0x9c52
cmp ax, cx
je 0x49c742
lea eax, [ecx + 0x63aa]
cmp ax, 9
ja 0x49c926
sub esp, 8
push ecx
push ecx
mov ecx, edi
call fcn.004b1230
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov eax, 0x433
cmp ax, cx
jne 0x49c4f9
sub esp, 0x10
mov ecx, edi
call fcn.004a90c0
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edx, 0x4e
jne 0x49c4f9
mov eax, dword [ebx + 4]
cmp eax, 0x404
jne 0x49c4f9
cmp dword [ebx + 8], 0xffffff4f
jne 0x49c986
push ecx
push ebx
push ecx
call fcn.004a6c60
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x404
jne 0x49c4f9
cmp dword [ebx + 8], 0xfffffffe
jne 0x49c9af
push ecx
push ebx
push ecx
call fcn.004a7510
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x404
jne 0x49c4f9
cmp dword [ebx + 8], 0xfffffffd
jne 0x49c9d8
push ecx
push ebx
push ecx
call fcn.004a7530
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x404
jne 0x49c4f9
cmp dword [ebx + 8], 0xffffff65
jne 0x49ca04
push ecx
push ebx
push ecx
call fcn.004a7fb0
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x404
jne 0x49c4f9
cmp dword [ebx + 8], 0xffffff9b
jne 0x49ca2d
sub esp, 0xc
call fcn.004a8050
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp eax, 0x404
jne 0x49c4f9
cmp dword [ebx + 8], 0xffffff94
jne 0x49c4f9
push ecx
push ebx
push ecx
call fcn.004a8060
mov dword [esi], eax
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edx, 5
jne 0x49caca
xor eax, eax
test ecx, ecx
cmove edi, eax
cmp byte [ecx + 0x1c], al
je 0x49ca9b
push 0xe801
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp + 0x10]
cmp ecx, 2
jne 0x49ca8c
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x49caa3
test ecx, ecx
jne 0x49ca9e
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x49caa3
mov ecx, dword [ebp + 0x10]
cmp ecx, 1
je 0x49caeb
mov eax, ebx
lea ecx, [edi + 0x28]
shr eax, 0x10
cwde
push eax
movsx eax, bx
push eax
call fcn.004b5740
mov dword [esi], 0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
cmp edx, 0x24
jne 0x49c49e
cmp dword [ecx + 0x14], 0xffffffff
je 0x49caeb
cmp dword [ecx + 0x18], 0xffffffff
je 0x49caeb
mov eax, dword [ecx + 0x14]
mov dword [ebx + 0x18], eax
mov eax, dword [ecx + 0x18]
mov dword [ebx + 0x1c], eax
mov dword [esi], 0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x18