Function at 0x408f90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x78
mov eax, dword [0x4ef52c]
xor eax, esp
mov dword [esp + 0x74], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], eax
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], edi
test eax, eax
je 0x4092a4
lea eax, [esp + 0x6c]
xorps xmm0, xmm0
push eax
push dword [edi + 0x20]
movups xmmword [esp + 0x74], xmm0
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x78]
or edi, 0xffffffff
sub eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
sub ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], eax
imul eax, ecx
mov dword [esp + 0x10], ecx
or ecx, edi
mov dword [esp + 0x24], ecx
xor esi, esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x3c], eax
mov eax, dword [sym.imp.GDI32.dll_GetObjectW]
mov dword [esp + 0x2c], eax
mov eax, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [esp + 0x30], eax
nop dword [eax]
mov eax, dword [esp + 0x28]
movzx ecx, word [eax + esi*4]
call fcn.004131e0
mov dword [esp + 0x38], eax
test eax, eax
je 0x4090ac
lea ecx, [esp + 0x40]
xorps xmm0, xmm0
push ecx
push 0x18
push eax
movaps xmmword [esp + 0x4c], xmm0
movq qword [esp + 0x5c], xmm0
call dword [esp + 0x38]
mov eax, 0x66666667
imul dword [esp + 0x48]
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x44]
mov ecx, eax
mov dword [esp + 0x34], eax
imul ecx, edx
test esi, esi
je 0x409078
cmp ecx, dword [esp + 0x20]
jge 0x409080
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x10]
inc eax
cmp eax, edx
jl 0x4090a4
mov eax, dword [esp + 0x18]
inc eax
cmp eax, dword [esp + 0x34]
jl 0x4090a4
test edi, edi
js 0x40909e
cmp ecx, dword [esp + 0x14]
jle 0x4090a4
mov edi, esi
mov dword [esp + 0x14], ecx
push dword [esp + 0x38]
call dword [esp + 0x34]
inc esi
cmp esi, 6
jb 0x409020
mov eax, edi
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x1c]
test eax, eax
cmovs eax, dword [esp + 0x24]
test eax, eax
js 0x4092a4
mov ecx, dword [esp + 0x28]
lfence
movzx ecx, word [ecx + eax*4]
call fcn.004131e0
mov esi, eax
test esi, esi
je 0x4092a4
lea eax, [esp + 0x40]
xorps xmm0, xmm0
push eax
push 0x18
push esi
movaps xmmword [esp + 0x4c], xmm0
movq qword [esp + 0x5c], xmm0
call dword [esp + 0x38]
cmp byte [0x4effc1], 0
jne 0x409117
lea ecx, [edi + 0xb4]
call fcn.00476a36
push 0
push 0
push 0
push 0
push esi
mov byte [0x4effc1], 0
call dword [sym.imp.USER32.dll_CopyImage]
push eax
lea ecx, [edi + 0xb4]
call fcn.00476931
mov eax, dword [esp + 0x44]
mov dword [edi + 0xa4], eax
mov eax, 0x66666667
imul dword [esp + 0x48]
push esi
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [edi + 0xa8], eax
call dword [esp + 0x34]
mov edx, dword [edi + 0xa4]
mov eax, edx
mov ecx, dword [edi + 0xa8]
mov esi, dword [esp + 0x10]
imul eax, ecx
mov dword [esp + 0x1c], eax
lea eax, [esi - 1]
cmp eax, edx
jg 0x4091c5
lea eax, [esi + 1]
cmp edx, eax
jg 0x4091c5
mov esi, dword [esp + 0x18]
lea eax, [esi - 1]
cmp eax, ecx
jg 0x4091c5
lea eax, [esi + 1]
cmp ecx, eax
jg 0x4091c5
push 0x206
push ecx
push edx
push 0
push 0
mov dword [edi + 0xb0], ecx
mov ecx, edi
push 0
mov dword [edi + 0xac], edx
mov byte [edi + 0xc0], 0
call fcn.0047658c
jmp 0x409271
mov ecx, dword [esp + 0x1c]
mov eax, ecx
sub eax, dword [esp + 0x3c]
add ecx, ecx
cdq
mov esi, eax
mov eax, 0x66666667
xor esi, edx
sub esi, edx
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jge 0x409222
mov eax, dword [edi + 0xa8]
mov ecx, dword [edi + 0xa4]
push 0x206
push eax
push ecx
push 0
push 0
mov dword [edi + 0xac], ecx
mov ecx, edi
push 0
mov dword [edi + 0xb0], eax
mov byte [edi + 0xc0], 0
call fcn.0047658c
jmp 0x409271
mov esi, dword [esp + 0x18]
lea ecx, [edi + 0xb4]
mov edx, dword [esp + 0x10]
push 5
lfence
lea eax, [esi + esi*4]
push eax
call fcn.00414810
add esp, 8
test al, al
mov eax, dword [esp + 0x10]
je 0x40925e
mov dword [edi + 0xa4], eax
mov dword [edi + 0xa8], esi
mov byte [edi + 0xc0], 0
jmp 0x409271
mov dword [edi + 0xac], eax
mov dword [edi + 0xb0], esi
mov byte [edi + 0xc0], 1
call fcn.0046dff5
push 0x7f89
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
push 0xfffffffffffffff4
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetClassLongW]
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x74]
xor ecx, esp
call fcn.00488461
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x7c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00488461
mov esp, ebp
pop ebp
ret 0xc