Function at 0x4af210
Capabilities:
Hide graphical window
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x58d4cb
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x5e173c]
xor eax, esp
mov dword [esp + 0x80], eax
push esi
push edi
mov eax, dword [0x5e173c]
xor eax, esp
push eax
lea eax, [esp + 0x94]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x1c], esi
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0x14], ecx
mov eax, dword [ecx + 0xc]
cmp eax, 1
jne 0x4af26c
mov eax, 0x20
jmp 0x4af50b
cmp eax, 0x10001
jne 0x4af509
mov edi, dword [ecx + 0x24]
lea eax, [esp + 0x3c]
push 0x30
push 0
push eax
mov dword [esp + 0x2c], edi
call fcn.0056cbb0
add esp, 0xc
mov dword [esp + 0x3c], edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [esp + 0x38]
add esi, 0x28
mov dword [esp + 0x38], 4
mov dword [esp + 0x10], esi
push eax
push 0
push 0x104b
push dword [esi]
call edi
xor ecx, ecx
test eax, eax
cmovne ecx, dword [esp + 0x58]
test ecx, ecx
jne 0x4af33c
push 0x30
call fcn.0056590a
add esp, 4
mov dword [esp + 0x24], eax
mov dword [esp + 0x9c], 0
test eax, eax
je 0x4af30f
push 0x30
push 0
push eax
call fcn.0056cbb0
mov eax, dword [esp + 0x28]
add esp, 0xc
push dword [esp + 0x20]
lea ecx, [eax + 0x20]
mov eax, dword [eax + 0x58]
add eax, 0xfc
push eax
push ecx
mov ecx, dword [esp + 0x30]
call fcn.004ae640
jmp 0x4af311
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x9c], 0xffffffff
push ecx
push dword [esi]
mov ecx, eax
call fcn.004af6e0
push dword [esp + 0x18]
mov ecx, esi
sub esp, 0x18
push dword [esp + 0x3c]
call fcn.004ad7c0
lea eax, [esp + 0x6c]
xorps xmm0, xmm0
push eax
push dword [esi]
movdqu xmmword [esp + 0x74], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 0x7c]
mov dword [esp + 0x88], 0
push eax
push dword [esp + 0x24]
xorps xmm0, xmm0
mov dword [esp + 0x84], 0
push 0x100e
push dword [esi]
movq qword [esp + 0x90], xmm0
call edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x74]
cmp dword [edi + 0x54], 0
mov dword [esp + 0x84], eax
jne 0x4af3b1
push 0x999999
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [edi + 0x54], eax
movdqu xmm0, xmmword [esp + 0x7c]
push dword [edi + 0x5c]
movdqu xmmword [esp + 0x2c], xmm0
psrldq xmm0, 0xc
movd eax, xmm0
mov dword [esp + 0x8c], eax
dec eax
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_FillRect]
xor edi, edi
push edi
push edi
push 0x1004
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
jle 0x4af4c9
push 0x30
lea eax, [esp + 0x40]
push 0
push eax
call fcn.0056cbb0
add esp, 0xc
mov dword [esp + 0x3c], edi
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 4
push eax
push 0
push 0x104b
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
xor ecx, ecx
test eax, eax
cmovne ecx, dword [esp + 0x58]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x4af4af
lea eax, [esp + 0x7c]
mov dword [esp + 0x7c], 0
push eax
push edi
push 0x100e
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x88]
mov esi, dword [esp + 0x6c]
dec ecx
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x74]
push 1
mov dword [esp + 0x8c], ecx
sub ecx, eax
push ecx
mov dword [esp + 0x8c], edx
sub edx, esi
push edx
push eax
mov dword [esp + 0x8c], esi
push esi
mov esi, dword [esp + 0x38]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [esp + 0x10]
push 0
push 0
push 0x1004
push dword [esi]
inc edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp edi, eax
jl 0x4af400
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x78]
cmp eax, ecx
jge 0x4af502
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x88], ecx
push dword [eax + 0x5c]
lea eax, [esp + 0x80]
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x10]
call dword [sym.imp.USER32.dll_FillRect]
mov eax, 4
jmp 0x4af50b
xor eax, eax
mov ecx, dword [esp + 0x94]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00564de8
add esp, 0x94
ret 4