Function at 0x4c97f0
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x57c0b0
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5d7050]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
push 0
call dword [sym.imp.MSVCR80.dll__time64]
mov esi, dword [esp + 0x90]
mov ebx, dword [esi + 0x384]
mov ebp, dword [esi + 0x388]
add esp, 4
sub ebx, eax
push 0
sbb ebp, edx
push 0x15180
push ebp
push ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
call fcn.0056a5c0
test edx, edx
mov edi, eax
jl 0x4c986c
jg 0x4c985b
test edi, edi
jbe 0x4c986c
add dword [esi + 0x384], 0xfffeae80
adc dword [esi + 0x388], 0xffffffff
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
push 0
push 0xe10
push ebp
push ebx
mov dword [esp + 0x94], 0
call fcn.0056a5c0
lea ecx, [edi + edi*2]
add ecx, ecx
add ecx, ecx
mov ebp, eax
mov dword [esp + 0x1c], eax
add ecx, ecx
sub ebp, ecx
mov eax, 0x66666667
imul ebp
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
push ebx
push 0x58cbe8
lea edi, [esp + 0x20]
call fcn.00410c00
mov ecx, dword [esp + 0x20]
add esp, 8
push 0x59202c
push 0x9c4
add esi, 0x24
push esi
call fcn.0044fd30
lea edx, [ebx + ebx*4]
add edx, edx
sub ebp, edx
push ebp
push 0x58cbe8
call fcn.00410c00
mov ecx, dword [esp + 0x20]
add esp, 8
push 0x59202c
push 0x9ce
push esi
call fcn.0044fd30
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0
push 0x3c
push eax
push ecx
call fcn.0056a5c0
mov ecx, dword [esp + 0x1c]
mov edx, ecx
shl edx, 4
sub edx, ecx
add edx, edx
add edx, edx
mov ebx, eax
mov dword [esp + 0x20], eax
sub ebx, edx
mov eax, 0x66666667
imul ebx
sar edx, 2
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
push ebp
push 0x58cbe8
call fcn.00410c00
mov ecx, dword [esp + 0x20]
add esp, 8
push 0x59202c
push 0x9d8
push esi
call fcn.0044fd30
lea eax, [ebp + ebp*4]
add eax, eax
sub ebx, eax
push ebx
push 0x58cbe8
call fcn.00410c00
mov ecx, dword [esp + 0x20]
add esp, 8
push 0x59202c
push 0x9e2
push esi
call fcn.0044fd30
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x28]
mov ecx, eax
shl ecx, 4
sub ecx, eax
add ecx, ecx
add ecx, ecx
sub ebx, ecx
mov eax, 0x66666667
imul ebx
sar edx, 2
mov ebp, edx
shr ebp, 0x1f
add ebp, edx
push ebp
push 0x58cbe8
call fcn.00410c00
mov ecx, dword [esp + 0x20]
add esp, 8
push 0x59202c
push 0x9ec
push esi
call fcn.0044fd30
lea edx, [ebp + ebp*4]
add edx, edx
sub ebx, edx
push ebx
push 0x58cbe8
call fcn.00410c00
mov ebp, dword [esp + 0x20]
add esp, 8
push 0x59202c
push 0x9f6
push esi
mov ecx, ebp
call fcn.0044fd30
mov eax, dword [esp + 0x8c]
mov edi, dword [sym.imp.MSVCR80.dll__localtime64_s]
add eax, 0x384
push eax
lea eax, [esp + 0x34]
push eax
call edi
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 0x44]
push 0
mov ebx, eax
call dword [sym.imp.MSVCR80.dll__time64]
add esp, 0xc
lea ecx, [esp + 0x20]
mov dword [esp + 0x24], edx
push ecx
lea edx, [esp + 0x58]
push edx
mov dword [esp + 0x28], eax
call edi
add esp, 8
neg eax
sbb eax, eax
not eax
and eax, dword [esp + 0x60]
mov ecx, 0xaf0
cmp ebx, eax
mov eax, esi
jne 0x4c9a6e
push 0x5a1d3c
jmp 0x4c9a73
push str.sQ:g
call fcn.0046ea90
mov eax, dword [0x5e736c]
mov edx, dword [eax + 0xc]
mov ecx, 0x5e736c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0x8c]
mov byte [esp + 0x84], 1
mov eax, dword [ebx + 0x374]
mov ecx, dword [ebx + 0x370]
push eax
push ecx
push str._02d:_02d
lea edi, [esp + 0x28]
call fcn.00410c00
mov edi, dword [esp + 0x28]
add esp, 0xc
push edi
mov ecx, 0xb54
mov eax, esi
call fcn.0046ea90
cmp dword [ebx + 0x390], 0
jne 0x4c9b7f
cmp dword [esp + 0x2c], 0
jg 0x4c9b7f
jl 0x4c9af2
cmp dword [esp + 0x28], 0x3c
ja 0x4c9b7f
mov edx, dword [ebx + 4]
push edx
mov dword [ebx + 0x380], 2
mov dword [ebx + 0x390], 1
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4c9b65
push eax
mov ecx, 0x960
mov eax, esi
call fcn.0046ebd0
push 1
mov ecx, 0xd48
mov eax, esi
call fcn.0046ebd0
mov eax, dword [ebx + 4]
push 0
push 0
push 0xf
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
push ebx
call fcn.004c9be0
mov ecx, dword [ebx + 4]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
call fcn.004c9be0
push 0
mov ecx, 0x960
mov eax, esi
call fcn.0046ebd0
lea eax, [edi - 0x10]
mov byte [esp + 0x84], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4c9b97
lea eax, [edi - 0x10]
mov byte [esp + 0x84], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c9ba3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x84], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c9bc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret 4