Function at 0x4988a4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4988ac
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x498adb
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x498a9f
push dword fs:[edx]
mov dword fs:[edx], esp
mov edi, dword [esi + 0x24]
test edi, edi
je 0x4988ff
mov eax, dword [edi + 0x423]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4988ff
push 0
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x423]
push eax
call sub.user32.dll_ShowWindow
mov eax, dword [esi + 0x10c]
test eax, eax
je 0x49890e
call fcn.0048f57c
mov eax, ebx
cmp dword [eax + 0x2e], 3
jne 0x498925
xor edx, edx
mov dword [eax + 0x2e], edx
call fcn.004062ac
jmp 0x498aa6
cmp ebx, dword [esi + 0x18]
jne 0x498a8c
lea edx, [ebp - 0x18]
mov esi, ebx
mov eax, esi
call fcn.00470208
cmp dword [ebp - 0x18], 0
je 0x498a8c
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00470208
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x498960
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, esi
call fcn.00471b80
dec eax
test eax, eax
jl 0x498a8c
inc eax
mov dword [ebp - 0x10], eax
xor edi, edi
cmp edi, 0x32
jg 0x498a8c
lea edx, [ebp - 0x28]
mov esi, ebx
mov eax, esi
call fcn.00470208
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0041b668
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x34]
mov edx, edi
mov eax, esi
call fcn.00471a98
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov edx, 1
call fcn.00407d50
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.0041b668
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00407d18
jne 0x498a82
mov dword [esi + 0x2e], 3
lea edx, [ebp - 8]
mov eax, esi
call fcn.00470208
lea ecx, [ebp - 4]
mov edx, edi
mov eax, esi
call fcn.00471a98
lea ecx, [ebp - 0x38]
mov edx, edi
mov eax, esi
call fcn.00471a98
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x498a1d
mov eax, dword [ebp - 0x14]
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x40]
push eax
mov edx, dword [ebp - 0xc]
inc edx
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00407d50
mov ecx, dword [ebp - 0x40]
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 8]
call fcn.00407be0
mov edx, dword [ebp - 0x3c]
mov eax, esi
call fcn.00470278
lea ecx, [ebp - 0x44]
mov edx, edi
mov eax, esi
call fcn.00471a98
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x498a66
sub eax, 4
mov eax, dword [eax]
movzx edx, word [ebp - 0xc]
movzx eax, ax
shl eax, 0x10
or edx, eax
push edx
push 0
push 0x142
push esi
call fcn.00472000
jmp 0x498a8c
inc edi
dec dword [ebp - 0x10]
jne 0x498979
xor eax, eax
mov dword [ebx + 0x2e], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498aa6
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x498ae2
lea eax, [ebp - 0x44]
mov edx, 9
call fcn.00406ba0
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00406ba0
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ba0
ret