Function at 0x40b510
Capabilities:
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x46cb40
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
mov eax, dword [0x491830]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
xor ebp, ebp
cmp dword [edi + 0xf88], ebp
mov dword [esp + 0x18], ebp
jle 0x40b79f
test ebp, ebp
jl 0x40b7b4
cmp ebp, dword [edi + 0xf88]
jge 0x40b7b4
mov eax, dword [edi + 0xf84]
lea ebx, [ebp*4]
mov esi, dword [ebx + eax]
cmp dword [esp + 0x4c], esi
je 0x40b580
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40b78e
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esp + 0x34]
mov ebp, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x28]
sub ecx, 4
push 0
add ebp, 0x41
add edx, 4
sub eax, 4
mov dword [esp + 0x38], ecx
sub ecx, ebp
push ecx
mov dword [esp + 0x38], eax
sub eax, edx
push eax
push ebp
push edx
push esi
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebp
call dword [sym.imp.USER32.dll_MoveWindow]
mov ebp, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push esi
call ebp
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [edi + 0xf78]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40b5fa
mov ecx, dword [edi + 0xf78]
push 0
push ecx
call ebp
mov edx, dword [esp + 0x18]
cmp edx, dword [edi + 0xf9c]
jge 0x40b7b4
mov eax, dword [edi + 0xf98]
add eax, ebx
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00406860
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
push 0x2d
push esi
mov dword [esp + 0x50], 0
call fcn.0044e73b
add esp, 0xc
test eax, eax
jne 0x40b640
or eax, 0xffffffff
jmp 0x40b644
sub eax, esi
sar eax, 1
inc eax
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.0040bf60
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 1
call fcn.004068d0
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b688
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
cmp dword [esi - 0xc], 0xb
jle 0x40b71b
push 8
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00405af0
push 0x479640
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x50], 2
call fcn.00405c30
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], 3
call fcn.004068d0
mov byte [esp + 0x44], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b6f2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x44], 0
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b717
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
lea ecx, [edi + 0xe08]
test esi, esi
jne 0x40b729
xor eax, eax
jmp 0x40b73f
mov eax, esi
lea ebx, [eax + 2]
mov edi, edi
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40b730
sub eax, ebx
sar eax, 1
push eax
push esi
call fcn.00406dd0
mov ecx, dword [edi + 0xdd4]
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
push 1
push 0
push ecx
call ebx
mov edx, dword [edi + 0xdd4]
push 1
push 0
push edx
call ebx
lea eax, [esi - 0x10]
mov dword [esp + 0x44], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40b78a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x18]
inc ebp
cmp ebp, dword [edi + 0xf88]
mov dword [esp + 0x18], ebp
jl 0x40b548
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 4
call fcn.00421a4a
int3