Function at 0x4fff70
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jl 0x4fff92
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [eax + 0xa9c]
jl 0x4fff9c
mov eax, 1
jmp 0x5003ee
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x78
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa98]
cmp dword [edx + ecx], 0
jne 0x4fffbb
mov eax, 1
jmp 0x5003ee
cmp dword [ebp + 0x10], 0
je 0x5001aa
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x78
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa98]
mov edx, dword [ecx + edx + 0x14]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x78
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa98]
mov eax, dword [edx + eax + 0x18]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x78
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa98]
mov ecx, dword [eax + ecx + 0x1c]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x78
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa98]
mov edx, dword [ecx + edx + 0x20]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa174]
and ecx, 0x10000
je 0x5000a0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x11c], 0
je 0x5000a0
push 0xcc0020
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
sub ecx, dword [eax + 0x4c0]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x124]
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x4bc]
mov edx, dword [ebp + 8]
add ecx, dword [edx + 0x120]
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x11c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xb3f8]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x500190
mov edx, dword [ebp + 8]
cmp dword [edx + 0xa154], 0
je 0x500120
mov eax, dword [ebp + 8]
cmp dword [eax + 0x46c], 0
je 0x500120
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x46c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xb3f8]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 4], eax
push 0xcc0020
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
sub eax, dword [edx + 0x4c0]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
sub edx, dword [ecx + 0x4bc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xb3f8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3a0]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
jmp 0x500190
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x78
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa98]
cmp dword [ecx + edx + 0x74], 0
je 0x500190
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x78
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa98]
mov edx, dword [ecx + edx + 0x74]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xb3f8]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 4], eax
push 0xcc0020
push 0
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xb3f8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3a0]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [ebp - 4], 0
je 0x5001aa
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xb3f8]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x78
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa98]
cmp dword [eax + ecx + 4], 0
je 0x5001dc
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x78
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa98]
mov ecx, dword [eax + ecx + 4]
push ecx
call fcn.004e2890
add esp, 4
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x78
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa98]
mov edx, dword [ecx + edx + 0x2c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004cd1e0
add esp, 8
test eax, eax
je 0x5003a3
mov edx, dword [ebp - 8]
imul edx, edx, 0x170
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3434]
cmp dword [ecx + edx + 0x84], 0
je 0x5003a3
push 0
mov edx, dword [ebp - 8]
imul edx, edx, 0x170
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3434]
mov edx, dword [ecx + edx + 0x84]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x39c]
push ecx
call dword [sym.imp.USER32.dll_ValidateRect]
mov edx, dword [ebp - 8]
imul edx, edx, 0x170
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3434]
mov edx, dword [ecx + edx + 0x150]
and edx, 0xfffffff3
mov eax, dword [ebp - 8]
imul eax, eax, 0x170
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x3434]
mov dword [ecx + eax + 0x150], edx
mov edx, dword [ebp - 8]
imul edx, edx, 0x170
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3434]
mov eax, dword [ebp - 8]
imul eax, eax, 0x170
mov esi, dword [ebp + 8]
mov esi, dword [esi + 0x3434]
mov ecx, dword [ecx + edx + 0x150]
mov dword [esi + eax + 0x150], ecx
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x78
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa98]
mov eax, dword [ebp + 8]
mov ecx, dword [ecx + edx + 0x18]
cmp ecx, dword [eax + 0x4c0]
jge 0x5002f8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x560]
or eax, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x560], eax
mov edx, dword [ebp + 0xc]
imul edx, edx, 0x78
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xa98]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x4c0]
mov esi, dword [ebp + 8]
add eax, dword [esi + 0x4b8]
cmp dword [ecx + edx + 0x20], eax
jle 0x500334
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x560]
or edx, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x560], edx
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x78
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa98]
mov edx, dword [ebp + 8]
mov eax, dword [eax + ecx + 0x14]
cmp eax, dword [edx + 0x4bc]
jge 0x500367
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x560]
or edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x560], edx
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x78
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa98]
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x4bc]
mov esi, dword [ebp + 8]
add edx, dword [esi + 0x4b4]
cmp dword [eax + ecx + 0x1c], edx
jle 0x5003a3
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x560]
or ecx, 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x560], ecx
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x78
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa98]
cmp dword [edx + eax + 0x74], 0
je 0x5003d3
mov eax, dword [ebp + 0xc]
imul eax, eax, 0x78
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xa98]
mov eax, dword [edx + eax + 0x74]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp + 0xc]
imul ecx, ecx, 0x78
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xa98]
mov dword [ecx + eax], 0
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret