Function at 0x4896c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x551644]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
lea edi, [ebx + 0x20]
mov ecx, 0x553818
mov byte [edi], 0
call fcn.004175a0
mov esi, dword [0x552af4]
mov ecx, dword [esi + 0x30]
sub ecx, dword [esi + 0x2c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x489730
mov esi, dword [esi + 0x2c]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x489730
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x489724
mov esi, dword [esi + 0x10]
mov ecx, dword [ecx + 0xc]
imul esi, ecx
add esi, eax
jmp 0x489732
mov esi, dword [esi + 0x10]
xor ecx, ecx
imul esi, ecx
add esi, eax
jmp 0x489732
xor esi, esi
mov eax, dword [esi + 8]
dec eax
je 0x48974d
dec eax
je 0x489744
mov dword [ebx + 0x24], 1
jmp 0x489754
mov dword [ebx + 0x24], 2
jmp 0x489754
mov dword [ebx + 0x24], 0
mov ecx, 0x55380c
call fcn.004174f0
mov ecx, dword [0x552af0]
mov edx, dword [ecx + 0x18]
test edx, edx
jne 0x48976f
xor ecx, ecx
jmp 0x489785
mov eax, dword [ecx + 0x20]
test eax, eax
je 0x48977b
mov eax, dword [eax + 0xc]
jmp 0x48977d
xor eax, eax
mov ecx, dword [ecx + 0x1c]
imul ecx, eax
add ecx, edx
call fcn.004754e0
test al, al
jne 0x4897b3
mov ecx, dword [ebx + 4]
push 0x516
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebx + 0x24], 2
jne 0x4897b3
mov dword [ebx + 0x24], 1
mov ecx, 0x553818
call fcn.004175a0
mov esi, dword [0x552af4]
mov ecx, dword [esi + 0x30]
sub ecx, dword [esi + 0x2c]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x489808
mov eax, dword [esi + 0x2c]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x489808
mov edx, dword [eax + 0x14]
test edx, edx
je 0x4897fc
mov eax, dword [eax + 0x10]
mov edx, dword [edx + 0xc]
imul eax, edx
add eax, ecx
jmp 0x48980a
mov eax, dword [eax + 0x10]
xor edx, edx
imul eax, edx
add eax, ecx
jmp 0x48980a
xor eax, eax
cmp byte [eax + 5], 0
sete cl
xor edx, edx
mov byte [ebx + 0x21], cl
cmp byte [edi], dl
setne dl
mov esi, edx
test edi, edi
je 0x489826
lea eax, [edi - 0x20]
jmp 0x489828
xor eax, eax
mov eax, dword [eax + 4]
push 0x4b0
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
test esi, esi
js 0x489840
cmp esi, 2
jle 0x489842
xor esi, esi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push esi
push 0xf1
push eax
call edi
xor ecx, ecx
cmp byte [ebx + 0x21], cl
lea eax, [ebx + 0x20]
setne cl
mov esi, ecx
test eax, eax
je 0x489869
add eax, 0xffffffe0
jmp 0x48986b
xor eax, eax
mov edx, dword [eax + 4]
push 0x4b1
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
test esi, esi
js 0x489883
cmp esi, 2
jle 0x489885
xor esi, esi
push 0
push esi
push 0xf1
push eax
call edi
push 0
lea eax, [ebx + 0x24]
push eax
push 0x514
lea ecx, [ebx + 0x20]
call fcn.0046bf60
lea esi, [ebx + 4]
push 0
mov ecx, esi
call fcn.004178e0
mov eax, dword [esi]
push 0
push 0
push 0x31
push eax
call edi
lea ecx, [ebp - 0x40]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
cmp eax, 0x3c
jne 0x48992c
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 0x30], 0x2bc
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [ebp - 0x44], eax
mov eax, dword [esi]
push 0x640
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x489906
mov ecx, dword [ebp - 0x44]
push 1
push ecx
push 0x30
push ebx
call edi
mov edx, dword [esi]
push 0x642
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48992c
mov eax, dword [ebp - 0x44]
push 1
push eax
push 0x30
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004f4f8b
mov esp, ebp
pop ebp
ret 0x10