Function at 0x46eba0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f3e28
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x674ff8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.0046e920
call fcn.00488823
call fcn.00488823
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
push esi
push 1
push 0x80
push dword [ebx + 0x20]
call edi
push esi
push 0
push 0x80
push dword [ebx + 0x20]
call edi
push 0
push 0x80
push 0
mov ecx, ebx
call fcn.004891b6
mov edx, 0xa2
lea ecx, [ebp - 0x4c]
call fcn.00401db0
mov dword [ebp - 4], 0
mov ecx, ebx
push dword [eax]
call fcn.004895b5
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x4c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46ec5c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
xorps xmm0, xmm0
ucomisd xmm0, qword [ebx + 0xd0]
mov esi, dword [sym.imp.USER32.dll_GetDC]
lahf
test ah, 0x44
jp 0x46ec9a
push 0x58
push 0
call esi
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movsd xmm1, qword [ebx + 0xd0]
movaps xmm0, xmm1
mulsd xmm0, qword [0x64a770]
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [ebp - 0x48], eax
lahf
test ah, 0x44
jp 0x46ece2
push 0x58
push 0
call esi
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movsd xmm1, qword [ebx + 0xd0]
movaps xmm0, xmm1
mulsd xmm0, qword [0x64a660]
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [ebp - 0x4c], eax
lahf
test ah, 0x44
jp 0x46ed2a
push 0x58
push 0
call esi
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movsd xmm1, qword [ebx + 0xd0]
movaps xmm0, xmm1
mulsd xmm0, qword [0x64a758]
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [ebp - 0x5c], eax
lahf
test ah, 0x44
jp 0x46ed72
push 0x58
push 0
call esi
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movsd xmm1, qword [ebx + 0xd0]
movaps xmm0, xmm1
mulsd xmm0, qword [0x64a6c8]
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [ebp - 0x58], eax
lahf
test ah, 0x44
jp 0x46edba
push 0x58
push 0
call esi
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movsd xmm1, qword [ebx + 0xd0]
mov edx, dword [ebx + 0x10c]
movaps xmm0, xmm1
mulsd xmm0, qword [0x64a660]
mov dword [ebp - 0x40], edx
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [ebp - 0x44], eax
lahf
test ah, 0x44
jp 0x46ee0e
push 0x58
push 0
call esi
push eax
call edi
mov edx, dword [ebp - 0x40]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movsd xmm1, qword [ebx + 0xd0]
mov eax, dword [ebx + 0x10c]
movaps xmm0, xmm1
mulsd xmm0, qword [0x64a820]
dec eax
imul edx, dword [ebp - 0x48]
cvttsd2si ecx, xmm0
xorps xmm0, xmm0
imul ecx, eax
mov eax, dword [ebp - 0x44]
sub edx, ecx
ucomisd xmm0, xmm1
lea eax, [edx + eax*2]
mov dword [ebp - 0x44], eax
lahf
test ah, 0x44
jp 0x46ee6c
push 0x58
push 0
call esi
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movsd xmm1, qword [ebx + 0xd0]
movaps xmm0, xmm1
mulsd xmm0, qword [0x64a6c8]
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [ebp - 0x40], eax
lahf
test ah, 0x44
jp 0x46eeb4
push 0x58
push 0
call esi
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movsd xmm0, qword [ebx + 0xd0]
mulsd xmm0, qword [0x64a828]
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 0x39], 1
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
cvttsd2si eax, xmm0
lea esi, [ecx + ecx]
sub esi, eax
lea eax, [ebp - 0x54]
add esi, dword [ebp - 0x40]
add esi, dword [ebp - 0x58]
add esi, dword [ebp - 0x48]
push eax
push 0x6d
mov dword [ebp - 0x40], esi
call fcn.00405560
mov ecx, eax
call fcn.00446a60
test al, al
je 0x46ef80
xorps xmm0, xmm0
lea ecx, [ebp - 0x18]
movq qword [ebp - 0x18], xmm0
call fcn.0040f530
mov eax, dword [ebp - 0x18]
mov esi, dword [eax]
cmp eax, esi
je 0x46ef41
nop dword [eax]
push dword [ebp - 0x50]
lea ecx, [esi + 8]
push dword [ebp - 0x54]
call fcn.004045e0
test eax, eax
mov eax, dword [ebp - 0x18]
jne 0x46ef3d
mov esi, dword [esi]
cmp eax, esi
jne 0x46ef20
jmp 0x46ef41
mov byte [ebp - 0x39], 0
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], 0
cmp ecx, eax
je 0x46ef74
nop dword [eax]
mov esi, dword [ecx]
push ecx
call fcn.0047d17e
mov eax, dword [ebp - 0x18]
add esp, 4
mov ecx, esi
cmp esi, eax
jne 0x46ef60
push eax
call fcn.0047d17e
mov esi, dword [ebp - 0x40]
add esp, 4
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
push dword [ebx + 0x20]
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
cmp byte [ebp - 0x39], 0
je 0x46f00c
push 0
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
push eax
push 0
push 0x30
movups xmmword [ebp - 0x38], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
cdq
mov ecx, dword [ebp - 0x40]
sub eax, edx
mov edi, eax
mov eax, dword [ebp - 0x44]
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub edi, eax
mov eax, dword [ebp - 0x2c]
sub eax, dword [ebp - 0x34]
cdq
sub eax, edx
mov esi, eax
mov eax, ecx
push 0x40
cdq
push ecx
push dword [ebp - 0x44]
sub eax, edx
sar esi, 1
sar eax, 1
sub esi, eax
push esi
push edi
push 0xffffffffffffffff
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
push edi
push 0x6d
call fcn.00405560
mov ecx, eax
call fcn.00446800
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
jmp 0x46f023
push 0x40
push esi
push dword [ebp - 0x44]
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push 0xffffffffffffffff
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [ebp - 0x28]
push eax
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_GetClientRect]
xorps xmm0, xmm0
ucomisd xmm0, qword [ebx + 0xd0]
lahf
test ah, 0x44
jp 0x46f066
push 0x58
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movsd xmm0, qword [ebx + 0xd0]
mulsd xmm0, qword [0x64a6c8]
cvttsd2si eax, xmm0
push eax
push dword [ebp - 0x20]
lea eax, [ebx + 0xd8]
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_SetRect]
xor esi, esi
cmp dword [ebx + 0x10c], esi
jle 0x46f237
nop
xorps xmm0, xmm0
ucomisd xmm0, qword [ebx + 0xd0]
lahf
test ah, 0x44
jp 0x46f0d6
push 0x58
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movsd xmm1, qword [ebx + 0xd0]
movaps xmm0, xmm1
mulsd xmm0, qword [0x64a660]
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [ebp - 0x40], eax
lahf
test ah, 0x44
jp 0x46f122
push 0x58
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movsd xmm1, qword [ebx + 0xd0]
mov edi, dword [ebp - 0x48]
movaps xmm0, xmm1
mulsd xmm0, qword [0x64a820]
cvttsd2si eax, xmm0
xorps xmm0, xmm0
sub edi, eax
imul edi, esi
add edi, dword [ebp - 0x40]
ucomisd xmm0, xmm1
lahf
test ah, 0x44
jp 0x46f17a
push 0x58
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movsd xmm1, qword [ebx + 0xd0]
movaps xmm0, xmm1
mulsd xmm0, qword [0x64a6c8]
cvttsd2si ecx, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [ebp - 0x40], ecx
lahf
test ah, 0x44
jp 0x46f1cd
push 0x58
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [ebp - 0x40]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
test esi, esi
js 0x46f24e
cmp esi, dword [ebx + 0x10c]
jge 0x46f24e
movsd xmm0, qword [ebx + 0xd0]
mulsd xmm0, qword [0x64a828]
mov eax, dword [ebp - 0x48]
push 1
push eax
push eax
cvttsd2si eax, xmm0
sub ecx, eax
mov eax, dword [ebx + 0x108]
push ecx
push edi
mov ecx, dword [eax + esi*4]
mov ecx, dword [ecx + 4]
call fcn.004892f5
cmp esi, dword [ebx + 0x10c]
jge 0x46f24e
mov eax, dword [ebx + 0x108]
push 5
mov ecx, dword [eax + esi*4]
mov ecx, dword [ecx + 4]
call fcn.00489606
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
inc esi
cmp esi, dword [ebx + 0x10c]
jl 0x46f0a0
push 2
mov ecx, ebx
lea esi, [ebx + 0xf0]
call fcn.00488bc8
test esi, esi
jne 0x46f253
xor ecx, ecx
jmp 0x46f256
call fcn.0047dc5e
mov ecx, dword [esi + 4]
push 1
push ecx
push 0x30
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x58]
sub ecx, edx
mov edi, dword [ebp - 0x5c]
sub ecx, dword [ebp - 0x4c]
push 1
push edx
cdq
sub eax, edx
mov esi, eax
mov eax, edi
cdq
push edi
sub eax, edx
sar esi, 1
push ecx
sar eax, 1
mov ecx, ebx
sub esi, eax
push esi
push 2
call fcn.00488bc8
mov ecx, eax
call fcn.004892f5
push 5
push 2
mov ecx, ebx
call fcn.00488bc8
mov ecx, eax
call fcn.00489606
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret