Function at 0x491830
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x4e1d10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc0
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x10]
lea ecx, [ebx + 0x10]
lea edx, [esp + 0x74]
push edi
xor esi, esi
push edx
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
call dword [eax + 0x74]
mov eax, dword [ebx + 0x90]
mov eax, dword [eax + 0x20]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call sub.MFC42.DLL_CDC::FromHandle
mov edi, eax
cmp edi, esi
mov dword [esp + 0x2c], edi
je 0x491e90
lea ecx, [esp + 0x34]
call fcn.00401730
mov dword [esp + 0x34], vtable.CFont.0
lea ecx, [ebx + 0x164]
mov dword [esp + 0xd8], esi
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push eax
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CGdiObject::Attach
lea edx, [esp + 0x34]
test edx, edx
je 0x4918ee
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x4918ee
push eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x3c], eax
jmp 0x4918f2
mov dword [esp + 0x3c], esi
lea eax, [ebx + 0x1a8]
cmp eax, esi
je 0x491918
cmp dword [eax + 4], esi
je 0x491918
mov edx, dword [ebx + 0x1ac]
lea ecx, [esp + 0xa0]
push ecx
push 0x18
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov cl, byte [esp + 0x33]
mov eax, dword [esp + 0xa8]
mov byte [esp + 0x60], cl
push esi
lea ecx, [esp + 0x64]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], eax
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, 0x521598
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x521598
lea ecx, [esp + 0x68]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov edx, dword [esp + 0x68]
mov byte [esp + 0xd8], 1
inc edx
lea ebp, [ebx + 0x294]
push edx
call sub.MFC42.DLL_operatornew
mov edi, dword [esp + 0x68]
add esp, 4
mov edx, eax
cmp edi, esi
mov dword [ebp], edx
jne 0x491990
mov edi, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 1
mov eax, ecx
mov esi, edi
mov edi, edx
mov byte [esp + 0xdc], 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x6c]
mov byte [ecx + edx], 0
lea ecx, [esp + 0x64]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edx, dword [ebp]
lea eax, [esp + 0x14]
push 0x400
push eax
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx + 0x29c], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
sub eax, ecx
mov ecx, dword [esp + 0xa8]
add eax, 0x18
push ecx
push eax
push 0
lea edx, [esp + 0x20]
push 0
push edx
call dword [sym.imp.USER32.dll_SetRect]
push 0x54
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov byte [esp + 0xd8], 2
je 0x491a7c
lea ecx, [ebx + 0x1a8]
test ecx, ecx
je 0x491a4b
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x14]
push 0
push ecx
sub esp, 0x10
mov ecx, esp
push 0x3e9
mov dword [ecx], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0xc], edx
mov ecx, eax
call fcn.00461300
jmp 0x491a7e
xor eax, eax
push ebp
mov ecx, eax
mov byte [esp + 0xdc], 0
mov dword [esp + 0x28], eax
call fcn.00461a60
mov eax, dword [esp + 0x24]
lea ecx, [ebx + 0x1d4]
lea edx, [esp + 0x24]
mov dword [eax + 0x34], 2
mov eax, dword [ecx + 8]
push edx
push eax
call fcn.004925b0
mov eax, dword [0x52d120]
mov ecx, 0x52d120
mov dword [esp + 0x10], 0x52d120
call dword [eax + 4]
mov eax, dword [0x52accc]
mov byte [esp + 0xd8], 3
test eax, eax
jne 0x491b34
mov eax, dword [0x52acc8]
test eax, eax
jne 0x491b34
push 0x1c
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0xd8], 4
je 0x491b05
push 0
mov ecx, eax
call fcn.00447940
jmp 0x491b07
xor eax, eax
mov ecx, dword [0x51cab8]
mov byte [esp + 0xd8], 3
push ecx
push 0x447910
mov ecx, 0x52b648
mov dword [0x52acc8], eax
call fcn.00402160
mov dword [0x52accc], 1
mov edx, dword [0x52d120]
mov edi, dword [0x52acc8]
mov ecx, 0x52d120
mov byte [esp + 0xd8], 0
call dword [edx + 8]
push 5
mov ecx, edi
call fcn.004a77e0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esp + 0x24]
lea ebp, [ebx + 0x1b0]
test ebp, ebp
mov edi, dword [eax + 0x10]
je 0x491c37
mov eax, dword [ebp + 4]
test eax, eax
je 0x491c37
mov edx, dword [ebx + 0x1b4]
mov esi, dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0x60]
push ecx
push 0x18
push edx
call esi
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
cdq
and edx, 3
push ecx
add eax, edx
lea edx, [esp + 0x18]
sar eax, 2
add eax, edi
push eax
push 0
push edi
push edx
call dword [sym.imp.USER32.dll_SetRect]
push 0x54
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
xor edi, edi
mov byte [esp + 0xd8], 5
cmp eax, edi
je 0x491c11
cmp ebp, edi
jne 0x491bdd
xor ebp, ebp
jmp 0x491be0
mov ebp, dword [ebp + 4]
mov edx, dword [esp + 0x14]
push 1
push ebp
sub esp, 0x10
mov ecx, esp
push 0x3ea
mov dword [ecx], edx
mov edx, dword [esp + 0x34]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x38]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0xc], edx
mov ecx, eax
call fcn.00461300
jmp 0x491c13
xor eax, eax
lea ecx, [ebx + 0x1d4]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
push edx
mov eax, dword [ecx + 8]
push 1
push eax
mov byte [esp + 0xe4], 0
call fcn.004927b0
jmp 0x491c3f
mov esi, dword [sym.imp.GDI32.dll_GetObjectA]
xor edi, edi
lea eax, [ebx + 0x1c0]
mov dword [esp + 0x40], edi
cmp eax, edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], edi
je 0x491c81
cmp dword [eax + 4], edi
je 0x491c81
mov ecx, dword [ebx + 0x1c4]
lea eax, [esp + 0x88]
push eax
push 0x18
push ecx
call esi
lea eax, [ebx + 0x1b8]
cmp eax, edi
je 0x491d80
cmp dword [eax + 4], edi
je 0x491d80
mov eax, dword [ebx + 0x1bc]
lea edx, [esp + 0xb8]
push edx
push 0x18
push eax
call esi
mov edi, dword [esp + 0x8c]
mov ebp, dword [esp + 0x80]
mov eax, edi
mov ecx, ebp
cdq
and edx, 3
add eax, edx
sar eax, 2
sub ecx, eax
mov eax, dword [esp + 0xbc]
cdq
and edx, 3
add eax, edx
mov esi, eax
mov eax, edi
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0xc0]
sar eax, 2
sar esi, 2
neg eax
sub eax, esi
push edx
add eax, ebp
push ecx
push 0
push eax
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0x54
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
test eax, eax
mov byte [esp + 0xd8], 6
je 0x491d5a
lea ecx, [ebx + 0x1b8]
test ecx, ecx
je 0x491d29
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x40]
push 2
push ecx
sub esp, 0x10
mov ecx, esp
push 0x3eb
mov dword [ecx], edx
mov edx, dword [esp + 0x60]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x64]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x68]
mov dword [ecx + 0xc], edx
mov ecx, eax
call fcn.00461300
jmp 0x491d5c
xor eax, eax
lea ecx, [ebx + 0x1d4]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
push edx
mov eax, dword [ecx + 8]
push 1
push eax
mov byte [esp + 0xe4], 0
call fcn.004927b0
xor edi, edi
lea esi, [ebx + 0x1c0]
cmp esi, edi
je 0x491e3d
cmp dword [esi + 4], edi
je 0x491e3d
mov eax, dword [esp + 0x8c]
mov ecx, dword [esp + 0x48]
cdq
and edx, 3
add eax, edx
mov edx, dword [esp + 0x90]
sar eax, 2
add eax, ecx
push edx
push eax
push edi
lea eax, [esp + 0x5c]
push ecx
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0x54
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x28], eax
cmp eax, edi
mov byte [esp + 0xd8], 7
je 0x491e19
cmp esi, edi
jne 0x491de5
xor esi, esi
jmp 0x491de8
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x50]
push 2
push esi
sub esp, 0x10
mov ecx, esp
push 0x3ec
mov dword [ecx], edx
mov edx, dword [esp + 0x70]
mov dword [ecx + 4], edx
mov edx, dword [esp + 0x74]
mov dword [ecx + 8], edx
mov edx, dword [esp + 0x78]
mov dword [ecx + 0xc], edx
mov ecx, eax
call fcn.00461300
jmp 0x491e1b
xor eax, eax
lea ecx, [ebx + 0x1d4]
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
push edx
mov eax, dword [ecx + 8]
push 1
push eax
mov byte [esp + 0xe4], 0
call fcn.004927b0
mov eax, dword [esp + 0x3c]
cmp eax, edi
je 0x491e54
push eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x2c]
mov ebx, dword [ebx + 0x90]
cmp ebx, edi
mov eax, dword [edx + 4]
jne 0x491e69
xor ebx, ebx
jmp 0x491e6c
mov ebx, dword [ebx + 0x20]
push eax
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [esp + 0x34], vtable.CGdiObject.0
lea ecx, [esp + 0x34]
mov dword [esp + 0xd8], 8
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0xd0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xcc
ret