Function at 0x475889
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 8], edi
jbe 0x47590c
mov dword [ebp - 0xc], edi
mov esi, dword [ebx]
add esi, dword [ebp - 0xc]
test dword [esi + 0x3c], 0x8080
je 0x475902
lea ecx, [esi + 0x18]
call fcn.004756dd
test al, al
je 0x4758c4
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4758ed
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x28]
or edx, 0x80
push edx
mov edx, dword [esi + 0x34]
sub edx, eax
push edx
mov edx, dword [esi + 0x30]
sub edx, ecx
push edx
push eax
push ecx
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowPos]
test byte [esi + 0x3c], 0x80
je 0x475902
push 0x40
push edi
mov ecx, ebx
call fcn.004a0a4a
dec edi
sub dword [ebp - 0xc], 0x40
add dword [ebp - 0xc], 0x40
inc edi
cmp edi, dword [ebx + 8]
jb 0x47589e
mov esi, dword [ebx + 8]
mov eax, esi
shl eax, 6
call fcn.00401000
and dword [ebp - 4], 0
mov eax, esp
mov dword [ebp - 0x18], eax
test esi, esi
je 0x475a49
mov dword [ebp - 8], eax
and dword [ebp - 0xc], 0
mov dword [ebp - 0x20], esi
test esi, esi
jbe 0x4759f4
and dword [ebp - 0x14], 0
mov esi, dword [ebx]
add esi, dword [ebp - 0x14]
lea ecx, [esi + 0x18]
call fcn.004756dd
test al, al
jne 0x4759d9
lea eax, [esi + 8]
push ecx
push eax
call dword [sym.imp.USER32.dll_EqualRect]
test eax, eax
jne 0x4759d9
xor edi, edi
mov dword [ebp - 0x10], edi
cmp dword [ebx + 8], edi
jbe 0x4759d9
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0xc], eax
je 0x4759cb
mov edx, dword [ebx]
lea ecx, [edi + edx + 0x18]
call fcn.004756dd
test al, al
jne 0x4759cb
test byte [edi + edx + 0x3c], 0x80
jne 0x4759cb
lea eax, [edi + edx + 8]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4759cb
mov eax, dword [ebx]
add eax, edi
lea ecx, [eax + 8]
lea edx, [esi + 8]
mov dword [ebp - 0x1c], eax
call fcn.004756f4
test al, al
je 0x475a06
mov ecx, dword [ebp - 0x1c]
add ecx, 0x18
lea edx, [esi + 0x18]
call fcn.004756f4
test al, al
je 0x475a06
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add edi, 0x40
cmp eax, dword [ebx + 8]
jb 0x47596e
mov edi, dword [ebp - 8]
inc dword [ebp - 4]
add dword [ebp - 8], 0x40
push 0x10
pop ecx
push 0x40
push dword [ebp - 0xc]
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
call fcn.004a0a4a
mov esi, dword [ebx + 8]
cmp dword [ebp - 0x20], esi
je 0x475a1b
test esi, esi
jne 0x47592d
jmp 0x475a49
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x14], 0x40
cmp eax, dword [ebx + 8]
jb 0x475940
jmp 0x4759f4
xor edx, edx
test esi, esi
jbe 0x475a49
mov eax, dword [ebp - 4]
and dword [ebp - 0x14], edx
shl eax, 6
add eax, dword [ebp - 0x18]
mov esi, dword [ebx]
add esi, dword [ebp - 0x14]
inc dword [ebp - 4]
add dword [ebp - 0x14], 0x40
push 0x10
mov edi, eax
add eax, 0x40
pop ecx
inc edx
rep movsd dword es:[edi], dword [esi]
cmp edx, dword [ebx + 8]
jb 0x475a2d
mov edi, dword [ebp - 4]
test edi, edi
jle 0x475a93
mov esi, dword [ebp - 0x18]
add esi, 0x3c
lea ecx, [esi - 0x24]
call fcn.004756dd
test al, al
jne 0x475a8d
test dword [esi], 0x8000
jne 0x475a8d
push dword [esi - 4]
mov eax, dword [esi - 0x10]
mov edx, dword [esi - 8]
mov ecx, dword [esi - 0x14]
sub edx, eax
push edx
mov edx, dword [esi - 0xc]
sub edx, ecx
push edx
push eax
push ecx
push dword [esi - 0x38]
push dword [esi - 0x3c]
call dword [sym.imp.USER32.dll_SetWindowPos]
add esi, 0x40
dec edi
jne 0x475a56
mov edi, dword [ebp - 4]
test edi, edi
jle 0x475af3
mov esi, dword [ebp - 0x18]
add esi, 0x3c
mov eax, dword [esi]
test al, al
js 0x475aed
test eax, 0x8040
je 0x475aed
lea ecx, [esi - 0x24]
call fcn.004756dd
test al, al
je 0x475ac6
push 5
push dword [esi - 0x3c]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x475aed
mov edx, dword [esi - 4]
mov eax, dword [esi - 0x10]
mov ecx, dword [esi - 0x14]
or edx, 0x40
push edx
mov edx, dword [esi - 8]
sub edx, eax
push edx
mov edx, dword [esi - 0xc]
sub edx, ecx
push edx
push eax
push ecx
push dword [esi - 0x38]
push dword [esi - 0x3c]
call dword [sym.imp.USER32.dll_SetWindowPos]
add esi, 0x40
dec edi
jne 0x475aa0
mov ecx, ebx
call fcn.004a0bd2
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
lea esp, [ebp - 0x3c]
pop edi
pop esi
pop ebx
leave
ret