Function at 0x4e1588
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, 0x4fd268
cmp dword [0x4fd49c], 0
je 0x4e15bc
call fcn.004e1394
test eax, eax
jne 0x4e15b5
call fcn.004e1540
jmp 0x4e1a5b
xor eax, eax
mov dword [0x4fd49c], eax
xor edx, edx
mov dword [0x5225e4], edx
mov eax, dword [esi]
test eax, eax
je 0x4e15fa
push 0x7c
push eax
call sub.USER32.dll_KillTimer
push 0x7d
mov edx, dword [esi]
push edx
call sub.USER32.dll_KillTimer
test ebx, ebx
jne 0x4e1666
mov dword [0x5225e4], 1
push 0
mov ecx, dword [esi]
push ecx
call sub.USER32.dll_ShowWindow
jmp 0x4e1666
push 0
call fcn.0040ef0c
pop ecx
sub eax, dword [0x4fd478]
dec eax
jle 0x4e1615
mov dword [0x5225e4], 1
push 0
mov eax, dword [0x4fd9e8]
push eax
push 0
push 0
mov edx, dword [0x4fd488]
push edx
mov ecx, dword [0x4fd48c]
push ecx
mov eax, dword [0x4fd494]
push eax
mov edx, dword [0x4fd490]
push edx
push 0x8a800000
push 0x4fd4a0
push 0x4fd47c
push 0x80
call sub.USER32.dll_CreateWindowExA
mov dword [esi], eax
cmp dword [esi], 0
jne 0x4e1666
call fcn.004e1540
jmp 0x4e1a5b
cmp ebx, 2
jne 0x4e167d
mov eax, dword [0x4fccd8]
mov dword [0x4fd26c], eax
push eax
call sub.USER32.dll_UpdateWindow
jmp 0x4e168d
mov eax, dword [0x4fcf7c]
mov dword [0x4fd26c], eax
push eax
call sub.USER32.dll_UpdateWindow
mov eax, dword [ebp + 0xc]
mov dword [0x4fd274], eax
mov dword [0x522608], eax
test ebx, ebx
jne 0x4e1716
cmp dword [0x522608], 0
jne 0x4e16cc
cmp dword [0x4f39b0], 0
jne 0x4e16c2
cmp dword [0x4f39b4], 0
jne 0x4e16c2
cmp dword [0x4f39c0], 0
je 0x4e16cc
mov dword [0x522608], 1
cmp dword [0x522608], 0x10
jne 0x4e16e8
cmp dword [0x4f6418], 0
je 0x4e16e8
mov dword [0x522608], 0x11
push 0x4fd278
mov edx, dword [0x522608]
add edx, 0x14b5
push edx
call fcn.0041f178
cmp byte [0x4fd278], 0
jne 0x4e1827
call fcn.004e1540
jmp 0x4e1a5b
cmp ebx, 1
jne 0x4e17e0
push 0x4fd278
mov ecx, dword [0x4fd498]
add ecx, 0x14df
push ecx
call fcn.0041f178
cmp byte [0x4fd278], 0
jne 0x4e1769
xor eax, eax
mov dword [0x4fd498], eax
push 0x4fd278
add eax, 0x14df
push eax
call fcn.0041f178
cmp byte [0x4fd278], 0
jne 0x4e1769
call fcn.004e1540
jmp 0x4e1a5b
mov edx, dword [0x4fd498]
add edx, 0x14df
cmp edx, 0x14f7
jne 0x4e17d8
mov ecx, 0x4fab6c
test ecx, ecx
jne 0x4e1796
call fcn.004e1540
inc dword [0x4fd498]
jmp 0x4e1a5b
push 0x4fab6c
push 0x4fd278
push 0x5188dc
call sub.USER32.dll_wsprintfA
add esp, 0xc
push esi
push edi
mov esi, 0x4fd278
mov edi, 0x5188dc
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
inc dword [0x4fd498]
jmp 0x4e1827
cmp ebx, 2
jne 0x4e1a5b
mov eax, dword [ebp + 0x14]
push esi
push edi
mov esi, 0x4fd278
mov edi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
cmp byte [0x4fd278], 0
jne 0x4e1827
call fcn.004e1540
jmp 0x4e1a5b
mov eax, dword [esi]
push eax
call sub.USER32.dll_GetDC
mov dword [0x522604], eax
cmp dword [0x522604], 0
jne 0x4e1847
call fcn.004e1540
jmp 0x4e1a5b
push 0xc
call sub.GDI32.dll_GetStockObject
push eax
mov edx, dword [0x522604]
push edx
call sub.GDI32.dll_SelectObject
mov dword [0x5225e8], eax
push esi
push edi
mov esi, 0x4fd378
mov edi, 0x4fd278
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
push 0xf
push 0x4fd378
call fcn.004d7fb8
push 0x5225fc
push 0x4fd378
call fcn.00401318
pop ecx
push eax
push 0x4fd378
mov eax, dword [0x522604]
push eax
call sub.GDI32.dll_GetTextExtentPointA
mov edx, dword [0x5225e8]
push edx
mov ecx, dword [0x522604]
push ecx
call sub.GDI32.dll_SelectObject
mov eax, dword [0x522604]
push eax
mov edx, dword [esi]
push edx
call sub.USER32.dll_ReleaseDC
mov ecx, dword [0x5225fc]
add ecx, 5
mov dword [0x4fd48c], ecx
mov eax, dword [0x522600]
add eax, 2
mov dword [0x4fd488], eax
cmp ebx, 2
jne 0x4e1936
push 0x5225ec
mov edx, dword [0x4fd9ec]
push edx
call sub.USER32.dll_GetWindowRect
movzx eax, di
mov dword [0x4fd490], eax
shr edi, 0x10
and di, 0xffff
movzx edx, di
mov dword [0x4fd494], edx
mov edx, dword [0x5225ec]
cmp eax, edx
jge 0x4e1990
mov dword [0x4fd490], edx
jmp 0x4e1990
mov eax, dword [0x4fd48c]
mov ecx, 3
cdq
idiv ecx
movzx edx, di
sub edx, eax
mov dword [0x4fd490], edx
mov eax, dword [0x4fcf90]
add eax, 2
mov dword [0x4fd494], eax
push 0x5225ec
mov ecx, dword [0x4fcf7c]
push ecx
call sub.USER32.dll_GetWindowRect
mov eax, dword [0x5225ec]
add dword [0x4fd490], eax
mov edx, dword [0x5225f0]
add dword [0x4fd494], edx
cmp eax, dword [0x4fd490]
jle 0x4e1990
mov dword [0x4fd490], eax
push 0x5225ec
mov ecx, dword [0x4fd9ec]
push ecx
call sub.USER32.dll_GetWindowRect
mov edx, dword [0x4fd490]
mov ecx, dword [0x4fd48c]
add edx, ecx
mov eax, dword [0x5225f4]
cmp edx, eax
jle 0x4e19c3
add eax, 0xfffffffb
sub edx, eax
sub dword [0x4fd490], edx
cmp dword [0x5225e4], 0
je 0x4e1a04
push 0x90
mov eax, dword [0x4fd488]
inc eax
push eax
push ecx
mov edx, dword [0x4fd494]
push edx
mov ecx, dword [0x4fd490]
push ecx
push 1
mov eax, dword [esi]
push eax
call sub.USER32.dll_SetWindowPos
push 0
push 0xfa
push 0x7d
mov edx, dword [esi]
push edx
call sub.USER32.dll_SetTimer
jmp 0x4e1a53
push 0x50
mov ecx, dword [0x4fd488]
inc ecx
push ecx
mov eax, dword [0x4fd48c]
push eax
mov edx, dword [0x4fd494]
push edx
mov ecx, dword [0x4fd490]
push ecx
push 0xffffffffffffffff
mov eax, dword [esi]
push eax
call sub.USER32.dll_SetWindowPos
push 1
push 0
mov edx, dword [esi]
push edx
call sub.USER32.dll_InvalidateRect
push 0
push 0x64
push 0x7c
mov ecx, dword [esi]
push ecx
call sub.USER32.dll_SetTimer
push 0
call fcn.0040ef0c
pop ecx
mov dword [0x4fd478], eax
mov eax, dword [esi]
push eax
call sub.USER32.dll_UpdateWindow
pop edi
pop esi
pop ebx
pop ebp
ret 0x10