Function at 0x436640
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5f02e0
mov eax, dword fs:[0]
push eax
sub esp, 0x74
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
mov dword [ebp - 0x80], ebx
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
call fcn.0040b470
push 0
push 0
push 0
mov ecx, dword [eax + 0x54]
xorps xmm0, xmm0
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x28]
push 0
push eax
mov dword [ebp - 0x14], ecx
movups xmmword [ebp - 0x28], xmm0
call dword [sym.imp.USER32.dll_SetRect]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
xorps xmm0, xmm0
ucomisd xmm0, qword [ebx + 0xd8]
mov esi, dword [sym.imp.USER32.dll_GetDC]
lahf
test ah, 0x44
jp 0x436723
push 0x58
push 0
call esi
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd8], xmm0
movsd xmm1, qword [ebx + 0xd8]
mov ecx, dword [ebp - 0x20]
movaps xmm0, xmm1
mulsd xmm0, qword [0x64a638]
cvttsd2si eax, xmm0
xorps xmm0, xmm0
add ecx, eax
ucomisd xmm0, xmm1
mov dword [ebp - 0x20], ecx
lahf
test ah, 0x44
jp 0x436773
push 0x58
push 0
call esi
push eax
call edi
mov ecx, dword [ebp - 0x20]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd8], xmm0
mov eax, dword [ebp - 0x14]
movsd xmm1, qword [ebx + 0xd8]
add eax, 0x28
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, xmm1
cvttsd2si eax, xmm0
xorps xmm0, xmm0
add ecx, eax
ucomisd xmm0, xmm1
mov dword [ebp - 0x20], ecx
lahf
test ah, 0x44
jp 0x4367c6
push 0x58
push 0
call esi
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd8], xmm0
movsd xmm0, qword [ebx + 0xd8]
mulsd xmm0, qword [0x64a638]
push dword [ebx + 0x20]
cvttsd2si eax, xmm0
xorps xmm0, xmm0
add dword [ebp - 0x1c], eax
movq qword [ebp - 0x40], xmm0
call esi
push eax
call fcn.004805d4
test eax, eax
je 0x4367f7
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], 0
push ecx
push eax
call dword [sym.imp.gdiplus.dll_GdipCreateFromHDC]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x40], eax
xorps xmm0, xmm0
mov dword [ebp - 4], 0
mov edx, 0xa4
movq qword [ebp - 0x70], xmm0
lea ecx, [ebp - 0x44]
call fcn.00401db0
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
ucomisd xmm0, qword [ebx + 0xd8]
lahf
test ah, 0x44
jp 0x436863
push 0x58
push 0
call esi
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd8], xmm0
movsd xmm0, qword [ebx + 0xd8]
lea ecx, [ebp - 0x70]
mulsd xmm0, qword [0x64a6a0]
sub esp, 8
push 1
cvttsd2si eax, xmm0
movd xmm2, eax
mov eax, dword [ebp - 0x14]
cvtdq2ps xmm2, xmm2
push dword [eax]
call fcn.004042f0
mov byte [ebp - 4], 1
or eax, 0xffffffff
mov edx, dword [ebp - 0x44]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4368af
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xorps xmm0, xmm0
lea ecx, [ebp - 0x7c]
mov edx, 0xa4
movq qword [ebp - 0x58], xmm0
call fcn.00401db0
xorps xmm0, xmm0
mov dword [ebp - 0x44], eax
ucomisd xmm0, qword [ebx + 0xd8]
lahf
test ah, 0x44
jp 0x4368f9
push 0x58
push 0
call esi
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd8], xmm0
movsd xmm0, qword [ebx + 0xd8]
lea ecx, [ebp - 0x58]
mulsd xmm0, qword [0x64a678]
sub esp, 8
push 0
cvttsd2si eax, xmm0
movd xmm2, eax
mov eax, dword [ebp - 0x44]
cvtdq2ps xmm2, xmm2
push dword [eax]
call fcn.004042f0
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x7c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x436945
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xorps xmm0, xmm0
mov dword [ebp - 0x5c], 0
ucomisd xmm0, qword [ebx + 0xd8]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x68], 0
lahf
test ah, 0x44
jp 0x436993
push 0x58
push 0
call esi
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd8], xmm0
movsd xmm0, qword [ebx + 0xd8]
lea ecx, [ebp - 0x18]
mulsd xmm0, qword [0x64a6c8]
push 0x642374
mov dword [ebp - 0x18], 0
cvttsd2si eax, xmm0
add dword [ebp - 0x1c], eax
call fcn.00404b00
push 0
push 0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x18]
xorps xmm0, xmm0
push ecx
push 0
lea ecx, [ebp - 0x50]
push ecx
push dword [ebp - 0x70]
movups xmmword [ebp - 0x50], xmm0
push dword [eax - 0xc]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.gdiplus.dll_GdipMeasureString]
mov ecx, dword [ebp - 0x3c]
test eax, eax
xorps xmm0, xmm0
cmovne ecx, eax
ucomisd xmm0, qword [ebx + 0xd8]
mov dword [ebp - 0x3c], ecx
lahf
test ah, 0x44
jp 0x436a27
push 0x58
push 0
call esi
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd8], xmm0
movsd xmm0, qword [ebx + 0xd8]
lea ecx, [ebp - 0x18]
mulsd xmm0, qword [0x64a680]
push 0x1a
push 0x64239c
cvttsd2si eax, xmm0
movd xmm0, dword [ebp - 0x1c]
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
addss xmm1, dword [ebp - 0x5c]
addss xmm1, xmm0
cvttss2si eax, xmm1
mov dword [ebp - 0x1c], eax
call fcn.004049c0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x68]
push 0
push 0
push ecx
push 0
lea ecx, [ebp - 0x50]
xorps xmm0, xmm0
push ecx
push dword [ebp - 0x58]
movups xmmword [ebp - 0x50], xmm0
push dword [eax - 0xc]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.gdiplus.dll_GdipMeasureString]
mov ecx, dword [ebp - 0x3c]
test eax, eax
xorps xmm0, xmm0
cmovne ecx, eax
ucomisd xmm0, qword [ebx + 0xd8]
mov dword [ebp - 0x3c], ecx
lahf
test ah, 0x44
jp 0x436ace
push 0x58
push 0
call esi
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd8], xmm0
movsd xmm0, qword [ebx + 0xd8]
lea ecx, [ebp - 0x18]
mulsd xmm0, qword [0x64a640]
push 0x1f
push 0x6423d8
cvttsd2si eax, xmm0
movd xmm0, dword [ebp - 0x1c]
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
addss xmm1, dword [ebp - 0x5c]
addss xmm1, xmm0
cvttss2si eax, xmm1
mov dword [ebp - 0x1c], eax
call fcn.004049c0
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x68]
push 0
push 0
push ecx
push 0
lea ecx, [ebp - 0x50]
xorps xmm0, xmm0
push ecx
push dword [ebp - 0x58]
movups xmmword [ebp - 0x50], xmm0
push dword [eax - 0xc]
push eax
push dword [ebp - 0x74]
call dword [sym.imp.gdiplus.dll_GdipMeasureString]
mov ecx, dword [ebp - 0x3c]
test eax, eax
xorps xmm0, xmm0
cmovne ecx, eax
ucomisd xmm0, qword [ebx + 0xd8]
mov dword [ebp - 0x3c], ecx
lahf
test ah, 0x44
jp 0x436b75
push 0x58
push 0
call esi
push eax
call edi
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd8], xmm0
movsd xmm2, qword [ebx + 0xd8]
movaps xmm0, xmm2
mulsd xmm0, qword [0x64a6a0]
cvttsd2si eax, xmm0
movd xmm0, dword [ebp - 0x1c]
cvtdq2ps xmm0, xmm0
movd xmm1, eax
cvtdq2ps xmm1, xmm1
addss xmm1, dword [ebp - 0x5c]
addss xmm1, xmm0
xorps xmm0, xmm0
ucomisd xmm0, xmm2
cvttss2si ecx, xmm1
lahf
mov dword [ebp - 0x1c], ecx
test ah, 0x44
jp 0x436bdc
push 0x58
push 0
call esi
push eax
call edi
mov ecx, dword [ebp - 0x1c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd8], xmm0
movsd xmm1, qword [ebx + 0xd8]
movaps xmm0, xmm1
mulsd xmm0, qword [0x64a628]
cvttsd2si eax, xmm0
xorps xmm0, xmm0
add ecx, eax
ucomisd xmm0, xmm1
mov dword [ebp - 0x1c], ecx
lahf
test ah, 0x44
jp 0x436c29
push 0x58
push 0
call esi
push eax
call edi
mov ecx, dword [ebp - 0x1c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, qword [0x64a768]
movsd qword [ebx + 0xd8], xmm0
mov eax, dword [ebp - 0x2c]
add eax, 0x28
movd xmm0, eax
cvtdq2ps xmm0, xmm0
cvtps2pd xmm0, xmm0
mulsd xmm0, qword [ebx + 0xd8]
cvttsd2si eax, xmm0
add ecx, eax
push ecx
mov dword [ebp - 0x1c], ecx
mov ecx, esp
push 0x63c638
call fcn.00404b00
mov ecx, 0xba
call fcn.00401c80
mov esi, eax
add esp, 4
mov dword [ebx + 0x160], esi
test esi, esi
je 0x436cbe
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 0x436c8b
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov esi, dword [ebx + 0x160]
mov dword [ebx + 0x164], 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 0x436cb5
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x168], eax
lea eax, [ebp - 0x48]
mov byte [ebp - 0x75], 1
push eax
push 0xdb
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
call fcn.00405560
mov ecx, eax
call fcn.00446a60
test al, al
je 0x436d8b
xorps xmm0, xmm0
lea ecx, [ebp - 0x30]
movq qword [ebp - 0x30], xmm0
call fcn.0040f530
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x44]
mov esi, dword [eax]
cmp eax, esi
je 0x436d2f
nop dword [eax]
push edi
push dword [ebp - 0x48]
lea ecx, [esi + 8]
call fcn.004045e0
test eax, eax
mov eax, dword [ebp - 0x30]
jne 0x436d2b
mov esi, dword [esi]
cmp eax, esi
jne 0x436d10
jmp 0x436d2f
mov byte [ebp - 0x75], 0
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [ebp - 0x30]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x2c], 0
cmp ecx, eax
je 0x436d5b
mov esi, dword [ecx]
push ecx
call fcn.0047d17e
mov eax, dword [ebp - 0x30]
add esp, 4
mov ecx, esi
cmp esi, eax
jne 0x436d47
push eax
call fcn.0047d17e
add esp, 4
cmp byte [ebp - 0x75], 0
jne 0x436d8b
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
push 0x40
push eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x28]
push eax
push edi
push dword [ebp - 0x48]
push 0xffffffffffffffff
push dword [ebx + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp 0x436e01
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]
mov edi, dword [ebp - 0x20]
sub edi, dword [ebp - 0x28]
cdq
mov ecx, dword [ebp - 0x1c]
sub eax, edx
sub ecx, dword [ebp - 0x24]
mov ebx, eax
mov eax, edi
sar ebx, 1
cdq
sub eax, edx
sar eax, 1
sub ebx, 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
sub eax, edx
sar esi, 1
sar eax, 1
push edi
sub esi, eax
mov eax, dword [ebp - 0x80]
push esi
push ebx
push 0xffffffffffffffff
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SetWindowPos]
push esi
push ebx
push 0xdb
call fcn.00405560
mov ecx, eax
call fcn.00446800
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x436e20
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x58]
mov esi, dword [sym.imp.gdiplus.dll_GdipDeleteFont]
call esi
push dword [ebp - 0x70]
call esi
push dword [ebp - 0x74]
call dword [sym.imp.gdiplus.dll_GdipDeleteGraphics]
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