Function at 0x405960
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ec348
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x674ff8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x74], edi
push ecx
mov ecx, esp
push 0x63c638
call fcn.00404b00
mov ecx, 0xbb
call fcn.00401c80
mov esi, eax
add esp, 4
mov dword [edi + 0xf4], esi
test esi, esi
je 0x405a03
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x4059d0
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov esi, dword [edi + 0xf4]
mov dword [edi + 0xf8], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x4059fa
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0xfc], eax
push ecx
mov ecx, esp
push 0x63c638
call fcn.00404b00
mov ecx, 0xba
call fcn.00401c80
mov esi, eax
add esp, 4
mov dword [edi + 0x100], esi
test esi, esi
je 0x405a77
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x405a44
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov esi, dword [edi + 0x100]
mov dword [edi + 0x104], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x405a6e
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x108], eax
push ecx
mov ecx, esp
push 0x63c638
call fcn.00404b00
mov ecx, 0xe2
call fcn.00401c80
mov esi, eax
add esp, 4
mov dword [edi + 0x11c], esi
test esi, esi
je 0x405aeb
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageWidth]
test eax, eax
je 0x405ab8
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov esi, dword [edi + 0x11c]
mov dword [edi + 0x120], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], 0
push dword [esi + 4]
call dword [sym.imp.gdiplus.dll_GdipGetImageHeight]
test eax, eax
je 0x405ae2
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x124], eax
mov eax, dword [edi + 0xf8]
lea ecx, [edi + 0xe4]
mov esi, dword [sym.imp.USER32.dll_SetRect]
add eax, 4
push 0x25d
push eax
push 0
push 0
push ecx
mov dword [edi + 0xdc], eax
mov dword [edi + 0xe0], 0x25d
call esi
push 0
push 0
push 0
push 0
lea eax, [edi + 0x148]
push eax
call esi
mov esi, edi
xorps xmm0, xmm0
movq qword [ebp - 0x24], xmm0
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.004805d4
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push ecx
push dword [eax + 4]
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov edi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 0
mov edx, 0xa4
movq qword [ebp - 0x34], xmm0
lea ecx, [ebp - 0x1c]
call fcn.00401db0
xorps xmm0, xmm0
mov dword [ebp - 0x6c], eax
ucomisd xmm0, qword [esi + 0xd0]
lahf
test ah, 0x44
jp 0x405bbf
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 [esi + 0xd0], xmm0
movsd xmm0, qword [esi + 0xd0]
lea ecx, [ebp - 0x34]
mulsd xmm0, qword [0x64a678]
sub esp, 8
push 0
cvttsd2si eax, xmm0
movd xmm2, eax
mov eax, dword [ebp - 0x6c]
cvtdq2ps xmm2, xmm2
push dword [eax]
call fcn.004042f0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405c0b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0
call fcn.00489e6c
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.0048a19b
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
cmp dword [esi + 0x1a8], ecx
jle 0x405ec5
nop
mov dword [ebp - 0x1c], 0
test ecx, ecx
js 0x40609d
cmp ecx, dword [esi + 0x1a8]
jge 0x40609d
mov eax, dword [esi + 0x1a4]
mov eax, dword [eax + ecx*4]
sub eax, 0x10
push eax
call fcn.00404bc0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 3
xorps xmm0, xmm0
mov eax, dword [esi + 0xec]
sub eax, dword [esi + 0xe4]
ucomisd xmm0, qword [esi + 0xd0]
mov dword [ebp - 0x78], eax
lahf
test ah, 0x44
jp 0x405ce3
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 [esi + 0xd0], xmm0
mov eax, dword [ebp - 0x78]
add eax, 0xffffff86
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [esi + 0xd0]
cvttsd2si esi, xmm0
nop
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x54]
push 0
push 0
push ecx
push 0
lea ecx, [ebp - 0x44]
xorps xmm0, xmm0
push ecx
push dword [ebp - 0x34]
movups xmmword [ebp - 0x44], xmm0
push dword [eax - 0xc]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.gdiplus.dll_GdipMeasureString]
test eax, eax
mov dword [ebp - 0x18], 0
cmovne edi, eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 0x20], edi
push eax
call fcn.00404bc0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x18], eax
movd xmm1, esi
cvtdq2ps xmm1, xmm1
mov byte [ebp - 4], 4
movss xmm0, dword [ebp - 0x4c]
comiss xmm0, xmm1
jbe 0x405e62
mov eax, dword [eax - 0xc]
lea ecx, [ebp - 0x18]
dec eax
push eax
push 0
lea eax, [ebp - 0x7c]
push eax
call fcn.0040a970
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.00404270
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x7c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405da4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x54]
push 0
push 0
push ecx
push 0
lea ecx, [ebp - 0x44]
xorps xmm0, xmm0
push ecx
push dword [ebp - 0x34]
movups xmmword [ebp - 0x44], xmm0
push dword [eax - 0xc]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.gdiplus.dll_GdipMeasureString]
movss xmm0, dword [ebp - 0x4c]
test eax, eax
movd xmm1, esi
cvtdq2ps xmm1, xmm1
cmovne edi, eax
mov dword [ebp - 0x20], edi
comiss xmm0, xmm1
jbe 0x405ded
mov eax, dword [ebp - 0x18]
jmp 0x405d65
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x60]
lea ecx, [ebp - 0x68]
call fcn.0048a112
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x1c]
push dword [eax - 0xc]
lea eax, [ebp - 0x70]
push eax
call fcn.00409eb0
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.00404270
mov byte [ebp - 4], 4
or eax, 0xffffffff
mov edx, dword [ebp - 0x70]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405e3a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405d00
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x405d00
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x60]
lea ecx, [ebp - 0x68]
call fcn.0048a112
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405e90
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x405eaf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x6c]
mov esi, dword [ebp - 0x74]
inc ecx
mov dword [ebp - 0x6c], ecx
cmp ecx, dword [esi + 0x1a8]
jl 0x405c60
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1a0]
call fcn.0048a19b
lea eax, [ebp - 0x68]
push eax
lea ecx, [esi + 0x1a0]
call fcn.00489fd7
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
mov eax, dword [ebp - 0x74]
push edi
push 1
push 0x80
push dword [eax + 0x20]
call esi
push edi
mov edi, dword [ebp - 0x74]
push 0
push 0x80
push dword [edi + 0x20]
call esi
push 0
push 0x80
push 0
mov ecx, edi
call fcn.004891b6
mov eax, dword [edi + 0xd8]
xorps xmm0, xmm0
test eax, eax
je 0x4060a2
lea ecx, [ebp - 0x2c]
push ecx
push eax
movups xmmword [ebp - 0x2c], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [edi + 0xe0]
xorps xmm0, xmm0
ucomisd xmm0, qword [edi + 0xd0]
lahf
test ah, 0x44
jp 0x405f94
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 [edi + 0xd0], xmm0
movsd xmm1, qword [edi + 0xd0]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov esi, dword [edi + 0xdc]
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [ebp - 0x70], eax
lahf
test ah, 0x44
jp 0x405fed
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 [edi + 0xd0], xmm0
movsd xmm1, qword [edi + 0xd0]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov esi, dword [ebp - 0x28]
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x20]
sub eax, esi
ucomisd xmm0, xmm1
mov dword [ebp - 0x6c], eax
mov eax, dword [edi + 0xe0]
mov dword [ebp - 0x78], eax
lahf
test ah, 0x44
jp 0x406057
push 0x58
push 0
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, dword [ebp - 0x28]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [edi + 0xd0], xmm0
movd xmm0, dword [ebp - 0x78]
cvtdq2ps xmm0, xmm0
push 0x40
push dword [ebp - 0x70]
cvtps2pd xmm0, xmm0
push dword [ebp - 0x7c]
mulsd xmm0, qword [edi + 0xd0]
cvttsd2si eax, xmm0
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x6c]
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
add eax, esi
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
cdq
sub eax, edx
sar eax, 1
add eax, dword [ebp - 0x2c]
jmp 0x406257
call fcn.0047dc5e
push 0
lea eax, [ebp - 0x44]
push eax
push 0
push 0x30
movups xmmword [ebp - 0x44], xmm0
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov esi, dword [edi + 0xe0]
xorps xmm0, xmm0
ucomisd xmm0, qword [edi + 0xd0]
lahf
test ah, 0x44
jp 0x4060f6
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 [edi + 0xd0], xmm0
movsd xmm1, qword [edi + 0xd0]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov esi, dword [edi + 0xdc]
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [ebp - 0x70], eax
lahf
test ah, 0x44
jp 0x40614f
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 [edi + 0xd0], xmm0
movsd xmm1, qword [edi + 0xd0]
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov esi, dword [edi + 0xe0]
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x40]
ucomisd xmm0, xmm1
mov dword [ebp - 0x6c], eax
lahf
test ah, 0x44
jp 0x4061b1
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 [edi + 0xd0], xmm0
movsd xmm1, qword [edi + 0xd0]
movd xmm0, esi
mov esi, dword [ebp - 0x3c]
sub esi, dword [ebp - 0x44]
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm1
mov dword [ebp - 0x78], eax
mov eax, dword [edi + 0xdc]
mov dword [ebp - 0x74], eax
lahf
test ah, 0x44
jp 0x406213
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 [edi + 0xd0], xmm0
movd xmm0, dword [ebp - 0x74]
mov eax, dword [ebp - 0x78]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x6c]
cvtdq2ps xmm0, xmm0
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
push 0x40
push dword [ebp - 0x70]
cvtps2pd xmm0, xmm0
push dword [ebp - 0x7c]
mulsd xmm0, qword [edi + 0xd0]
push eax
cvttsd2si eax, xmm0
cdq
sub eax, edx
mov ecx, eax
mov eax, esi
cdq
sub eax, edx
sar ecx, 1
sar eax, 1
sub eax, ecx
push eax
push 0xffffffffffffffff
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea ecx, [ebp - 0x68]
call fcn.00489e83
push dword [ebp - 0x34]
call dword [sym.imp.gdiplus.dll_GdipDeleteFont]
push dword [ebp - 0x14]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c2ae8
mov esp, ebp
pop ebp
ret