Function at 0x54f174
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], 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 0x54f413
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [esi + 0x268], 0
test bl, bl
je 0x54f1c7
cmp dword [esi + 0x2c8], 0
je 0x54f1c7
lea edx, [ebp - 0x20]
mov eax, dword [esi + 0x2c8]
call fcn.0054bc4c
cmp dword [ebp - 0x20], 0
jne 0x54f1cb
xor eax, eax
jmp 0x54f1cd
mov al, 1
mov ebx, eax
test bl, bl
je 0x54f399
mov eax, esi
call fcn.00471130
test al, al
jne 0x54f399
mov ebx, dword [esi + 0x2c8]
cmp byte [ebx + 0x24], 0
je 0x54f211
lea eax, [ebp - 0x1c]
push eax
mov eax, ebx
call fcn.00420510
mov edx, eax
mov eax, dword [esi + 0x2c8]
mov ecx, dword [eax + 0xc]
mov eax, esi
call fcn.0054e2ec
jmp 0x54f224
mov eax, ebx
call fcn.00420510
mov edx, eax
lea ecx, [ebp - 0x1c]
mov eax, esi
call fcn.0054e0f4
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.00470444
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 + 0x2a0]
add eax, eax
mov edx, dword [esi + 0x48]
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 + 0x2c8]
call fcn.0054bc4c
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0xc]
call fcn.0046d9f8
push 0xc10
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404acc
inc eax
push eax
mov eax, dword [ebp - 0xc]
call fcn.00404ccc
push eax
mov eax, dword [esi + 0x208]
call fcn.0042d998
push eax
call sub.user32.dll_DrawTextA
mov eax, dword [esi + 0x2c8]
call fcn.0054bc7c
cmp byte [eax + 0x18], 0
jne 0x54f2d4
mov eax, dword [esi + 0x48]
sub eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x1c]
sar eax, 1
jns 0x54f2cf
adc eax, 0
add dword [ebp - 8], eax
jmp 0x54f2dd
mov eax, dword [esi + 0x2a0]
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 + 0x26c], 0xffffffff
je 0x54f318
mov eax, dword [esi + 0x26c]
push eax
mov eax, esi
call fcn.00477378
push eax
call sub.user32.dll_KillTimer
mov eax, dword [0x56b984]
mov eax, dword [eax]
mov edx, dword [eax + 0x5c]
mov eax, dword [esi + 0x264]
call fcn.00470acc
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 0x1c]
mov eax, dword [esi + 0x264]
mov ebx, dword [eax]
call dword [ebx + 0xd0]
mov byte [esi + 0x268], 1
push 0x54c5f0
push 0xbb8
push 1
mov eax, esi
call fcn.00477378
push eax
call sub.user32.dll_SetTimer
mov dword [esi + 0x26c], eax
xor edx, edx
mov eax, esi
call fcn.00470a7c
lea edx, [ebp - 0x34]
mov eax, dword [esi + 0x2c8]
call fcn.0054bc4c
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.0046da3c
mov edx, dword [ebp - 0x30]
lea eax, [esi + 0x80]
call fcn.00404860
jmp 0x54f3e8
cmp dword [esi + 0x26c], 0xffffffff
je 0x54f3c0
mov eax, dword [esi + 0x26c]
push eax
mov eax, esi
call fcn.00477378
push eax
call sub.user32.dll_KillTimer
mov dword [esi + 0x26c], 0xffffffff
mov eax, dword [esi + 0x264]
call fcn.00477378
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x54f3e8
push 0
mov eax, dword [esi + 0x264]
call fcn.00477378
push eax
call sub.user32.dll_ShowWindow
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54f41a
lea eax, [ebp - 0x34]
mov edx, 3
call fcn.00404830
lea eax, [ebp - 0x20]
call fcn.0040480c
lea eax, [ebp - 0xc]
call fcn.0040480c
ret