Function at 0x4a0754
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4a09f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [esi + 0x248], 0
test bl, bl
je 0x4a07a8
cmp dword [esi + 0x2a8], 0
je 0x4a07a8
lea edx, [ebp - 0x20]
mov eax, dword [esi + 0x2a8]
call fcn.0049d0c0
cmp dword [ebp - 0x20], 0
jne 0x4a07ac
xor eax, eax
jmp 0x4a07ae
mov al, 1
mov ebx, eax
test bl, bl
je 0x4a0976
mov eax, esi
call fcn.0043e5b4
test al, al
jne 0x4a0976
mov ebx, dword [esi + 0x2a8]
cmp byte [ebx + 0x24], 0
je 0x4a07f2
lea eax, [ebp - 0x1c]
push eax
mov eax, ebx
call fcn.004152fc
mov edx, eax
mov eax, dword [esi + 0x2a8]
mov ecx, dword [eax + 0xc]
mov eax, esi
call fcn.0049f894
jmp 0x4a0805
mov eax, ebx
call fcn.004152fc
mov edx, eax
lea ecx, [ebp - 0x1c]
mov eax, esi
call fcn.0049f698
mov eax, dword [ebp - 0x10]
add eax, 2
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x28]
lea edx, [ebp - 8]
mov eax, esi
call fcn.0043d4e8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
push 0
mov eax, dword [esi + 0x280]
add eax, eax
mov edx, dword [esi + 0x38]
sub edx, eax
push edx
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_SetRect
lea edx, [ebp - 0x2c]
mov eax, dword [esi + 0x2a8]
call fcn.0049d0c0
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0xc]
call fcn.0043a208
push 0
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + 0x244]
mov ebx, dword [eax]
call dword [ebx + 0xc0]
push esi
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x1c]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
mov eax, dword [esi + 0x2a8]
call fcn.0049d0f0
cmp byte [eax + 0x18], 0
jne 0x4a08b4
mov eax, dword [esi + 0x38]
sub eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
sar eax, 1
jns 0x4a08af
adc eax, 0
add dword [ebp - 8], eax
jmp 0x4a08bd
mov eax, dword [esi + 0x280]
add dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_OffsetRect
push 1
push 1
lea eax, [ebp - 0x1c]
push eax
call sub.user32.dll_InflateRect
cmp dword [esi + 0x24c], 0xffffffff
je 0x4a08f8
mov eax, dword [esi + 0x24c]
push eax
mov eax, esi
call fcn.00445ca8
push eax
call sub.user32.dll_KillTimer
mov eax, dword [0x567794]
mov eax, dword [eax]
mov edx, dword [eax + 0x4c]
mov eax, dword [esi + 0x244]
call fcn.0043dde8
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x1c]
mov eax, dword [esi + 0x244]
mov ebx, dword [eax]
call dword [ebx + 0xb8]
mov byte [esi + 0x248], 1
push 0x49daac
push 0xbb8
push 1
mov eax, esi
call fcn.00445ca8
push eax
call sub.user32.dll_SetTimer
mov dword [esi + 0x24c], eax
xor edx, edx
mov eax, esi
call fcn.0043dd5c
lea edx, [ebp - 0x44]
mov eax, dword [esi + 0x2a8]
call fcn.0049d0c0
mov eax, dword [ebp - 0x44]
lea edx, [ebp - 0x40]
call fcn.0043a25c
mov edx, dword [ebp - 0x40]
lea eax, [esi + 0x70]
call fcn.004048e8
jmp 0x4a09c5
cmp dword [esi + 0x24c], 0xffffffff
je 0x4a099d
mov eax, dword [esi + 0x24c]
push eax
mov eax, esi
call fcn.00445ca8
push eax
call sub.user32.dll_KillTimer
mov dword [esi + 0x24c], 0xffffffff
mov eax, dword [esi + 0x244]
call fcn.00445ca8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4a09c5
push 0
mov eax, dword [esi + 0x244]
call fcn.00445ca8
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a09ff
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004048b8
lea eax, [ebp - 0x2c]
call fcn.00404894
lea eax, [ebp - 0x20]
call fcn.00404894
lea eax, [ebp - 0xc]
call fcn.00404894
ret