Function at 0x409a60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x64dff0]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov ecx, esp
push 0x61c128
call fcn.00406cf0
mov ecx, 0xc5
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 + 0xf0], eax
test eax, eax
je 0x409bec
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], 0
push ecx
push dword [eax + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
mov ecx, eax
test ecx, ecx
je 0x409ad4
mov eax, dword [esp + 0xc]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
mov dword [ebx + 0xf4], eax
mov eax, dword [ebx + 0xf0]
push ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0
push dword [eax + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
mov ecx, eax
test ecx, ecx
je 0x409b0b
mov eax, dword [esp + 0xc]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x18]
mov dword [ebx + 0xf8], eax
add eax, 0xffffffea
push eax
mov eax, dword [ebx + 0xf4]
sub eax, 0x10
push eax
push 6
push 6
lea eax, [ebx + 0xfc]
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov eax, dword [ebx + 0xf8]
xorps xmm0, xmm0
ucomisd xmm0, qword [ebx + 0xe8]
mov dword [esp + 0xc], eax
lahf
test ah, 0x44
jp 0x409b70
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xe8], xmm0
movd xmm0, dword [esp + 0xc]
movsd xmm1, qword [ebx + 0xe8]
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 + 0xf4]
mov dword [esp + 0x18], eax
lahf
test ah, 0x44
jp 0x409bc8
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xe8], xmm0
movd xmm0, dword [esp + 0x18]
mov ecx, ebx
push dword [esp + 0xc]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [ebx + 0xe8]
cvttsd2si eax, xmm0
push eax
call fcn.00409550
push ecx
mov ecx, esp
push 0x61c128
call fcn.00406cf0
mov ecx, 0xba
call fcn.004095f0
mov edi, dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
mov esi, eax
add esp, 4
mov dword [ebx + 0x10c], esi
test esi, esi
je 0x409c68
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x409c31
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov esi, dword [ebx + 0x10c]
mov dword [ebx + 0x110], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x409c5e
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x114], eax
push ecx
mov ecx, esp
push 0x61c128
call fcn.00406cf0
mov ecx, 0xc6
call fcn.004095f0
mov esi, eax
add esp, 4
mov dword [ebx + 0x128], esi
test esi, esi
je 0x409cde
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x409ca7
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov esi, dword [ebx + 0x128]
mov dword [ebx + 0x12c], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x409cd4
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x130], eax
push ecx
mov ecx, esp
push 0x61c128
call fcn.00406cf0
mov ecx, 0xc7
call fcn.004095f0
add esp, 4
mov esi, eax
cmp dword [ebx + 0x128], 0
mov dword [ebx + 0x134], esi
je 0x409d59
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x409d22
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov esi, dword [ebx + 0x134]
mov dword [ebx + 0x138], eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x409d4f
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x13c], 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
lea eax, [esp + 0x24]
mov byte [esp + 0x13], 1
push eax
push 0xd1
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
call fcn.00405c20
mov ecx, eax
call fcn.00441100
test al, al
je 0x40a0bb
xorps xmm0, xmm0
lea ecx, [esp + 0x1c]
movq qword [esp + 0x1c], xmm0
call fcn.00409790
mov eax, dword [esp + 0x1c]
mov esi, dword [eax]
cmp eax, esi
je 0x409e23
mov edi, dword [sym.imp.USER32.dll_PtInRect]
nop dword [eax]
push dword [esp + 0x28]
lea eax, [esi + 8]
push dword [esp + 0x28]
push eax
call edi
test eax, eax
mov eax, dword [esp + 0x1c]
jne 0x409e1e
mov esi, dword [esi]
cmp eax, esi
jne 0x409e00
jmp 0x409e23
mov byte [esp + 0x13], 0
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], 0
cmp ecx, eax
je 0x409e55
nop
mov esi, dword [ecx]
push ecx
call fcn.0045dc22
mov eax, dword [esp + 0x20]
add esp, 4
mov ecx, esi
cmp esi, eax
jne 0x409e40
push eax
call fcn.0045dc22
add esp, 4
cmp byte [esp + 0x13], 0
jne 0x40a0bb
mov eax, dword [ebx + 0xf8]
xorps xmm0, xmm0
ucomisd xmm0, qword [ebx + 0xe8]
mov edi, dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0xc], eax
lahf
test ah, 0x44
jp 0x409eb3
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 + 0xe8], xmm0
jmp 0x409eb9
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
movd xmm0, dword [esp + 0xc]
movsd xmm1, qword [ebx + 0xe8]
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 + 0xf4]
mov dword [esp + 0x18], eax
lahf
test ah, 0x44
jp 0x409f11
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xe8], xmm0
movd xmm0, dword [esp + 0x18]
mov ecx, ebx
cvtdq2ps xmm0, xmm0
push 0x214
push dword [esp + 0x10]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [ebx + 0xe8]
cvttsd2si eax, xmm0
push eax
push dword [esp + 0x34]
push dword [esp + 0x34]
push 0x702700
call fcn.0046aa52
mov eax, dword [ebx + 0xf8]
xorps xmm0, xmm0
ucomisd xmm0, qword [ebx + 0xe8]
mov dword [esp + 0xc], eax
lahf
test ah, 0x44
jp 0x409f83
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xe8], xmm0
movd xmm0, dword [esp + 0xc]
movsd xmm1, qword [ebx + 0xe8]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xf4]
mov dword [esp + 0xc], eax
lahf
test ah, 0x44
jp 0x409fdb
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xe8], xmm0
movd xmm0, dword [esp + 0xc]
movsd xmm1, qword [ebx + 0xe8]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [esp + 0xc], eax
lahf
test ah, 0x44
jp 0x40a029
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xe8], xmm0
movd xmm0, dword [esp + 0x28]
movsd xmm1, qword [ebx + 0xe8]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [esp + 0x14], eax
lahf
test ah, 0x44
jp 0x40a077
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xe8], xmm0
movd xmm0, dword [esp + 0x24]
cvtdq2ps xmm0, xmm0
push 0x43
push dword [esp + 0x1c]
cvtps2pd xmm0, xmm0
push dword [esp + 0x14]
mulsd xmm0, qword [ebx + 0xe8]
push dword [esp + 0x20]
cvttsd2si eax, xmm0
push eax
push 0xffffffffffffffff
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005a3521
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0x28]
xorps xmm0, xmm0
push eax
push 0
push 0x30
movups xmmword [esp + 0x34], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x2c]
xorps xmm0, xmm0
sub eax, dword [esp + 0x24]
ucomisd xmm0, qword [ebx + 0xe8]
mov edi, dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0xc], eax
mov eax, dword [ebx + 0xf4]
mov dword [esp + 0x14], eax
lahf
test ah, 0x44
jp 0x40a12a
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 + 0xe8], xmm0
jmp 0x40a130
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
movd xmm0, dword [esp + 0x14]
movsd xmm1, qword [ebx + 0xe8]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0xc]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x30]
sub eax, dword [esp + 0x28]
ucomisd xmm0, xmm1
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xf8]
mov dword [esp + 0x14], eax
lahf
test ah, 0x44
jp 0x40a1a6
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xe8], xmm0
movd xmm0, dword [esp + 0x14]
movsd xmm1, qword [ebx + 0xe8]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x18]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
ucomisd xmm0, xmm1
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0xf8]
mov dword [esp + 0x14], eax
lahf
test ah, 0x44
jp 0x40a210
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xe8], xmm0
movd xmm0, dword [esp + 0x14]
movsd xmm1, qword [ebx + 0xe8]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0xf4]
mov dword [esp + 0x1c], eax
lahf
test ah, 0x44
jp 0x40a268
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xe8], xmm0
movd xmm0, dword [esp + 0x1c]
mov ecx, ebx
cvtdq2ps xmm0, xmm0
push 0x214
push dword [esp + 0x18]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [ebx + 0xe8]
cvttsd2si eax, xmm0
push eax
push dword [esp + 0x24]
push dword [esp + 0x1c]
push 0x702700
call fcn.0046aa52
mov eax, dword [ebx + 0xf8]
xorps xmm0, xmm0
ucomisd xmm0, qword [ebx + 0xe8]
mov dword [esp + 0x1c], eax
lahf
test ah, 0x44
jp 0x40a2da
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xe8], xmm0
movd xmm0, dword [esp + 0x1c]
movsd xmm1, qword [ebx + 0xe8]
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 + 0xf4]
mov dword [esp + 0x14], eax
lahf
test ah, 0x44
jp 0x40a332
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x6260b8]
movsd qword [ebx + 0xe8], xmm0
movd xmm0, dword [esp + 0x14]
cvtdq2ps xmm0, xmm0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0xc]
push 0x43
push dword [esp + 0x20]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [ebx + 0xe8]
cvttsd2si eax, xmm0
push eax
push esi
push edi
push 0xffffffffffffffff
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
push edi
push 0xd1
call fcn.00405c20
mov ecx, eax
call fcn.00440f30
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005a3521
mov esp, ebp
pop ebp
ret