Function at 0x40fc40
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x674ff8]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov ecx, esp
push 0x63c638
call fcn.00404b00
mov ecx, 0xe1
call fcn.00401c80
mov edi, dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
mov esi, eax
add esp, 4
mov dword [ebx + 0x224], esi
test esi, esi
je 0x40fcd5
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x40fc9e
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov esi, dword [ebx + 0x224]
mov dword [ebx + 0x228], 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 0x40fccb
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x22c], eax
push ecx
mov ecx, esp
push 0x63c638
call fcn.00404b00
mov ecx, 0xe0
call fcn.00401c80
add esp, 4
mov esi, eax
cmp dword [ebx + 0x224], 0
mov dword [ebx + 0x230], esi
je 0x40fd50
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x40fd19
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov esi, dword [ebx + 0x230]
mov dword [ebx + 0x234], 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 0x40fd46
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x238], eax
push ecx
mov ecx, esp
push 0x63c638
call fcn.00404b00
mov ecx, 0xb7
call fcn.00401c80
mov esi, eax
add esp, 4
mov dword [ebx + 0x24c], esi
test esi, esi
je 0x40fdc6
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x40fd8f
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov esi, dword [ebx + 0x24c]
mov dword [ebx + 0x250], 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 0x40fdbc
mov dword [esi + 8], eax
mov eax, dword [esp + 0x28]
mov dword [ebx + 0x254], eax
mov eax, dword [ebx + 0x250]
push 0xa0
add eax, 4
mov dword [ebx + 0x210], 0xa0
push eax
push 0
mov dword [ebx + 0x20c], eax
lea eax, [ebx + 0x214]
push 0
push eax
call dword [sym.imp.USER32.dll_SetRect]
call fcn.00488823
call fcn.00488823
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.004891b6
mov eax, dword [ebx + 0x1d8]
test eax, eax
je 0x41003c
lea ecx, [esp + 0x34]
xorps xmm0, xmm0
push ecx
push eax
movups xmmword [esp + 0x3c], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebx + 0x210]
xorps xmm0, xmm0
ucomisd xmm0, qword [ebx + 0xd0]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x28], eax
lahf
test ah, 0x44
jp 0x40feab
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movd xmm0, dword [esp + 0x28]
movsd xmm1, qword [ebx + 0xd0]
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 + 0x20c]
mov dword [esp + 0x28], eax
lahf
test ah, 0x44
jp 0x40ff03
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movd xmm0, dword [esp + 0x28]
movsd xmm1, qword [ebx + 0xd0]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
ucomisd xmm0, xmm1
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x210]
mov dword [esp + 0x28], eax
lahf
test ah, 0x44
jp 0x40ff67
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movd xmm0, dword [esp + 0x28]
movsd xmm1, qword [ebx + 0xd0]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0x34]
ucomisd xmm0, xmm1
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x20c]
mov dword [esp + 0x14], eax
lahf
test ah, 0x44
jp 0x40ffcb
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movd xmm0, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x18]
cdq
cvtdq2ps xmm0, xmm0
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
add eax, dword [esp + 0x38]
push 0x40
push dword [esp + 0x28]
cvtps2pd xmm0, xmm0
push dword [esp + 0x28]
mulsd xmm0, qword [ebx + 0xd0]
push eax
cvttsd2si eax, xmm0
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x3c]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
add eax, dword [esp + 0x44]
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 + 0x38]
xor ecx, esp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
mov byte [esp + 0x13], 1
push eax
push 0x6b
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.00405560
mov ecx, eax
call fcn.00446a60
test al, al
je 0x4101ad
xorps xmm0, xmm0
lea ecx, [esp + 0x2c]
movq qword [esp + 0x2c], xmm0
call fcn.0040f530
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x1c]
mov esi, dword [eax]
cmp eax, esi
je 0x4100b2
nop dword [eax]
push edi
push dword [esp + 0x1c]
lea eax, [esi + 8]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4100ad
mov esi, dword [esi]
cmp dword [esp + 0x2c], esi
jne 0x410090
jmp 0x4100b2
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x2c]
call fcn.00412290
cmp byte [esp + 0x13], 0
jne 0x4101ad
mov eax, dword [ebx + 0x210]
xorps xmm0, xmm0
ucomisd xmm0, qword [ebx + 0xd0]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x2c], eax
lahf
test ah, 0x44
jp 0x410114
push 0x58
push 0
call ecx
push eax
call esi
mov ecx, dword [sym.imp.USER32.dll_GetDC]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movd xmm0, dword [esp + 0x2c]
movsd xmm1, qword [ebx + 0xd0]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x20c]
mov dword [esp + 0x14], eax
lahf
test ah, 0x44
jp 0x41016c
push 0x58
push 0
call ecx
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movd xmm0, dword [esp + 0x14]
cvtdq2ps xmm0, xmm0
push 0x40
push dword [esp + 0x30]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [ebx + 0xd0]
cvttsd2si eax, xmm0
push eax
push edi
push dword [esp + 0x28]
push 0xffffffffffffffff
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret
push 0
lea eax, [esp + 0x38]
xorps xmm0, xmm0
push eax
push 0
push 0x30
movups xmmword [esp + 0x44], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x3c]
xorps xmm0, xmm0
sub eax, dword [esp + 0x34]
ucomisd xmm0, qword [ebx + 0xd0]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, dword [sym.imp.USER32.dll_GetDC]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x20c]
mov dword [esp + 0x2c], eax
lahf
test ah, 0x44
jp 0x41021a
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movd xmm0, dword [esp + 0x2c]
movsd xmm1, qword [ebx + 0xd0]
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 + 0x14]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x38]
ucomisd xmm0, xmm1
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x210]
mov dword [esp + 0x2c], eax
lahf
test ah, 0x44
jp 0x410290
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movd xmm0, dword [esp + 0x2c]
movsd xmm1, qword [ebx + 0xd0]
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 + 0x14]
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 + 0x210]
mov dword [esp + 0x2c], eax
lahf
test ah, 0x44
jp 0x4102fa
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movd xmm0, dword [esp + 0x2c]
movsd xmm1, qword [ebx + 0xd0]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x20c]
mov dword [esp + 0x14], eax
lahf
test ah, 0x44
jp 0x410352
push 0x58
push 0
call edi
push eax
call esi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd0], xmm0
movd xmm0, dword [esp + 0x14]
cvtdq2ps xmm0, xmm0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
push 0x40
push dword [esp + 0x30]
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [ebx + 0xd0]
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 0xd4
call fcn.00405560
mov ecx, eax
call fcn.00446800
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret