Function at 0x499fe0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov edx, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 8], edx
test edx, edx
je 0x49a218
mov eax, dword [0x52e838]
test eax, eax
je 0x49a042
mov ecx, dword [eax + 4]
test ecx, 0x40000000
je 0x49a042
mov edx, dword [eax + 0x1f0c]
test edx, edx
je 0x49a01e
mov dword [0x52e83c], edx
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 8]
test ecx, 0x40000000
je 0x49a042
mov eax, dword [eax + 0x1f2c]
test eax, eax
je 0x49a042
push 0x4ef64c
push edx
call eax
mov ecx, eax
mov dword [ebp - 0xc], ecx
jmp 0x49a052
push 0x4ef64c
push edx
call fcn.004939c0
mov ecx, eax
mov dword [ebp - 0xc], eax
add esp, 8
test ecx, ecx
je 0x49a218
mov eax, dword [ecx + 0xf0]
test eax, eax
je 0x49a218
mov dword [ebp - 0x14], ebx
jle 0x49a211
push esi
xor edx, edx
lea esi, [ecx + 0xc8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], esi
test edi, edi
js 0x49a09b
mov eax, dword [ecx + 0xf4]
cmp dword [eax + edx + 0x3c], edi
jne 0x49a1f0
mov edi, dword [ecx + 0xf4]
push 0
add edi, edx
push 0
push 0x130b
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp + 0x10]
mov ebx, eax
test ecx, ecx
js 0x49a0d2
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, ecx
push 0
push ecx
push 0x130c
push dword [edi]
call eax
jmp 0x49a13f
cmp ecx, 0xfffffffe
jne 0x49a0ec
mov ebx, dword [esi]
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x130c
push dword [edi]
call eax
jmp 0x49a13f
mov esi, ebx
cmp ecx, 0xfffffffd
jne 0x49a112
test ebx, ebx
js 0x49a10a
mov eax, dword [edi + 8]
mov eax, dword [eax + ebx*4]
test eax, eax
je 0x49a10a
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [ebp - 4]
jmp 0x49a1e7
mov ebx, esi
cmp ecx, 0xffffffff
jne 0x49a13c
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ecx
push 0
push 5
push dword [ebp - 8]
call ebx
mov eax, dword [edi + 8]
push 0
push 0
push 0x9004
push dword [eax + esi*4]
call ebx
mov ebx, esi
mov esi, dword [ebp - 4]
cmp dword [esi], ebx
jne 0x49a155
push dword [edi]
mov esi, dword [sym.imp.USER32.dll_UpdateWindow]
call esi
mov eax, dword [edi + 8]
push dword [eax + ebx*4]
call esi
mov eax, dword [edi + 8]
push 5
push dword [eax + ebx*4]
call dword [sym.imp.USER32.dll_ShowWindow]
xor esi, esi
cmp dword [edi + 4], esi
jle 0x49a188
nop word [eax + eax]
cmp esi, ebx
je 0x49a182
mov eax, dword [edi + 8]
push 0
push dword [eax + esi*4]
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
cmp esi, dword [edi + 4]
jl 0x49a170
mov esi, dword [ebp - 4]
mov ecx, dword [esi]
test ecx, ecx
js 0x49a1a8
cmp ecx, ebx
je 0x49a1a8
mov eax, dword [edi + 8]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x49a1a8
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi + 8]
push 0
push 0
push 0x900f
push dword [eax + ebx*4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esi], ebx
jne 0x49a1c7
cmp dword [ebp + 0x10], 0xfffffffe
jne 0x49a1e5
test dword [ebp + 0x14], 0x8000
jne 0x49a1e5
mov eax, dword [edi + 8]
push 0
push 1
push 0x270d
push dword [eax + ebx*4]
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [esi], ebx
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add esi, 4
inc eax
mov dword [ebp - 4], esi
add edx, 0x48
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
cmp eax, dword [ecx + 0xf0]
jl 0x49a087
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret