Function at 0x498f20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x498f28
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x499157
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x49911b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edi, dword [esi + 0x24]
test edi, edi
je 0x498f7b
mov eax, dword [edi + 0x423]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x498f7b
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 0x498f8a
call fcn.0048f06c
mov eax, ebx
cmp dword [eax + 0x2e], 3
jne 0x498fa1
xor edx, edx
mov dword [eax + 0x2e], edx
call fcn.004062ac
jmp 0x499122
cmp ebx, dword [esi + 0x18]
jne 0x499108
lea edx, [ebp - 0x18]
mov esi, ebx
mov eax, esi
call fcn.004706d8
cmp dword [ebp - 0x18], 0
je 0x499108
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.004706d8
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x498fdc
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, esi
call fcn.0047205c
dec eax
test eax, eax
jl 0x499108
inc eax
mov dword [ebp - 0x10], eax
xor edi, edi
cmp edi, 0x32
jg 0x499108
lea edx, [ebp - 0x28]
mov esi, ebx
mov eax, esi
call fcn.004706d8
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x24]
call fcn.0041b774
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.00471f74
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.0041b774
mov edx, dword [ebp - 0x2c]
pop eax
call fcn.00407d18
jne 0x4990fe
mov dword [esi + 0x2e], 3
lea edx, [ebp - 8]
mov eax, esi
call fcn.004706d8
lea ecx, [ebp - 4]
mov edx, edi
mov eax, esi
call fcn.00471f74
lea ecx, [ebp - 0x38]
mov edx, edi
mov eax, esi
call fcn.00471f74
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 0x499099
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.00470748
lea ecx, [ebp - 0x44]
mov edx, edi
mov eax, esi
call fcn.00471f74
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4990e2
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.0047248c
jmp 0x499108
inc edi
dec dword [ebp - 0x10]
jne 0x498ff5
xor eax, eax
mov dword [ebx + 0x2e], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x499122
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49915e
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