Function at 0x42e5c0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x64dff0]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov ecx, esp
push 0x61c128
call fcn.00406cf0
mov ecx, 0xb6
call fcn.004095f0
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
add esp, 4
mov edi, dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0xc], eax
mov dword [ebx + 0xfc], eax
test eax, eax
je 0x42e74c
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0
push ecx
push dword [eax + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
mov ecx, eax
test ecx, ecx
je 0x42e634
mov eax, dword [esp + 0xc]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x28]
mov dword [ebx + 0x100], eax
mov eax, dword [ebx + 0xfc]
push ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x2c], 0
push dword [eax + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
mov ecx, eax
test ecx, ecx
je 0x42e66b
mov eax, dword [esp + 0xc]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x104], eax
add eax, 0xffffffea
push eax
mov eax, dword [ebx + 0x100]
sub eax, 0x10
push eax
push 6
push 6
lea eax, [ebx + 0x178]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebx + 0x104]
xorps xmm0, xmm0
ucomisd xmm0, qword [ebx + 0xd8]
mov dword [esp + 0xc], eax
lahf
test ah, 0x44
jp 0x42e6d0
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xd8], xmm0
movd xmm0, dword [esp + 0xc]
movsd xmm1, qword [ebx + 0xd8]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0x100]
mov dword [esp + 0x28], eax
lahf
test ah, 0x44
jp 0x42e728
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xd8], xmm0
movd xmm0, dword [esp + 0x28]
mov ecx, ebx
push dword [esp + 0xc]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [ebx + 0xd8]
cvttsd2si eax, xmm0
push eax
call fcn.00409550
push ecx
mov ecx, esp
push 0x61c128
call fcn.00406cf0
mov ecx, 0xb7
call fcn.004095f0
mov edi, dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
mov esi, eax
add esp, 4
mov dword [ebx + 0x108], esi
test esi, esi
je 0x42e7c8
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x42e791
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov esi, dword [ebx + 0x108]
mov dword [ebx + 0x10c], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x42e7be
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x110], eax
push ecx
mov ecx, esp
push 0x61c128
call fcn.00406cf0
mov ecx, 0xb8
call fcn.004095f0
mov esi, eax
add esp, 4
mov dword [ebx + 0x124], esi
test esi, esi
je 0x42e83e
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x42e807
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov esi, dword [ebx + 0x124]
mov dword [ebx + 0x128], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x42e834
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x12c], eax
push ecx
mov ecx, esp
push 0x61c128
call fcn.00406cf0
mov ecx, 0xb9
call fcn.004095f0
mov esi, eax
add esp, 4
mov dword [ebx + 0x140], esi
test esi, esi
je 0x42e8b4
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x42e87d
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov esi, dword [ebx + 0x140]
mov dword [ebx + 0x144], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x42e8aa
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x148], eax
push ecx
mov ecx, esp
push 0x61c128
call fcn.00406cf0
mov ecx, 0xba
call fcn.004095f0
mov esi, eax
add esp, 4
mov dword [ebx + 0x15c], esi
test esi, esi
je 0x42e92a
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x42e8f3
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov esi, dword [ebx + 0x15c]
mov dword [ebx + 0x160], eax
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x42e920
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x164], eax
call fcn.0046d46c
call fcn.0046d46c
push 0x80
mov eax, dword [eax + 0xc]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
push edi
push 1
push 0x80
push dword [ebx + 0x20]
call esi
push edi
push 0
push 0x80
push dword [ebx + 0x20]
call esi
push 0
push 0x80
push 0
mov ecx, ebx
call fcn.0046a6af
mov ecx, ebx
call fcn.0042ee30
mov eax, dword [ebx + 0xf4]
xorps xmm0, xmm0
movups xmmword [esp + 0x2c], xmm0
test eax, eax
je 0x42ec3e
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebx + 0x104]
xorps xmm0, xmm0
ucomisd xmm0, qword [ebx + 0xd8]
mov edi, dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0xc], eax
lahf
test ah, 0x44
jp 0x42e9e8
push 0x58
push 0
call edi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xd8], xmm0
jmp 0x42e9ee
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
movd xmm0, dword [esp + 0xc]
movsd xmm1, qword [ebx + 0xd8]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x100]
mov dword [esp + 0xc], eax
lahf
test ah, 0x44
jp 0x42ea46
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xd8], xmm0
movd xmm0, dword [esp + 0xc]
movsd xmm1, qword [ebx + 0xd8]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
ucomisd xmm0, xmm1
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x104]
mov dword [esp + 0xc], eax
lahf
test ah, 0x44
jp 0x42eaaa
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xd8], xmm0
movd xmm0, dword [esp + 0xc]
movsd xmm1, qword [ebx + 0xd8]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x104]
mov dword [esp + 0xc], eax
lahf
test ah, 0x44
jp 0x42eb02
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xd8], xmm0
movd xmm0, dword [esp + 0xc]
movsd xmm1, qword [ebx + 0xd8]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
ucomisd xmm0, xmm1
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x100]
mov dword [esp + 0xc], eax
lahf
test ah, 0x44
jp 0x42eb66
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xd8], xmm0
movd xmm0, dword [esp + 0xc]
movsd xmm1, qword [ebx + 0xd8]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x100]
mov dword [esp + 0xc], eax
lahf
test ah, 0x44
jp 0x42ebbe
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xd8], xmm0
movd xmm0, dword [esp + 0xc]
mov eax, 0x66666667
imul dword [esp + 0x18]
cvtdq2ps xmm0, xmm0
mov eax, dword [esp + 0x1c]
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x20]
add ecx, dword [esp + 0x30]
cdq
sub eax, edx
sar eax, 1
add eax, ecx
cvtps2pd xmm0, xmm0
push 0x40
push dword [esp + 0x2c]
mulsd xmm0, qword [ebx + 0xd8]
push dword [esp + 0x1c]
push eax
cvttsd2si ecx, xmm0
mov eax, 0x66666667
imul ecx
mov eax, dword [esp + 0x34]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [esp + 0x20]
add ecx, dword [esp + 0x3c]
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x42ee0a
push 0
lea eax, [esp + 0x30]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [ebx + 0x104]
xorps xmm0, xmm0
ucomisd xmm0, qword [ebx + 0xd8]
mov edi, dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x10], eax
lahf
test ah, 0x44
jp 0x42ec99
push 0x58
push 0
call edi
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xd8], xmm0
jmp 0x42ec9f
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
movd xmm0, dword [esp + 0x10]
movsd xmm1, qword [ebx + 0xd8]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x100]
mov dword [esp + 0x10], eax
lahf
test ah, 0x44
jp 0x42ecf7
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xd8], xmm0
movd xmm0, dword [esp + 0x10]
movsd xmm1, qword [ebx + 0xd8]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x38]
sub eax, dword [esp + 0x30]
ucomisd xmm0, xmm1
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x104]
mov dword [esp + 0x10], eax
lahf
test ah, 0x44
jp 0x42ed5b
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xd8], xmm0
movd xmm0, dword [esp + 0x10]
movsd xmm1, qword [ebx + 0xd8]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
sub eax, dword [esp + 0x2c]
ucomisd xmm0, xmm1
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x100]
mov dword [esp + 0x18], eax
lahf
test ah, 0x44
jp 0x42edbf
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xd8], xmm0
movd xmm0, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
push 0x40
push dword [esp + 0x28]
cvtps2pd xmm0, xmm0
push dword [esp + 0x28]
mulsd xmm0, qword [ebx + 0xd8]
push eax
cvttsd2si eax, xmm0
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x24]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
push eax
push 0xffffffffffffffff
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005a3521
mov esp, ebp
pop ebp
ret